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:
parent
28e5d41d9e
commit
d730351fa3
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue