1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

adns: fix label limit check

This commit is contained in:
Andy Green 2021-10-16 07:37:36 +01:00
parent 28e5d41d9e
commit d730351fa3

View file

@ -81,7 +81,8 @@ again1:
return -1;
}
if (ll > budget) {
if (ll > lws_ptr_diff_size_t(ls, ols) + (size_t)budget) {
lwsl_notice("%s: label too long %d vs %d\n", __func__, ll, budget);
return -1;