diff --git a/lib/system/async-dns/async-dns-parse.c b/lib/system/async-dns/async-dns-parse.c index 17e95aa20..bdfe20503 100644 --- a/lib/system/async-dns/async-dns-parse.c +++ b/lib/system/async-dns/async-dns-parse.c @@ -81,7 +81,8 @@ again1: return -1; } - if (ll > budget) { + + if (ls + ll > ols + budget) { lwsl_notice("%s: label too long %d vs %d\n", __func__, ll, budget); return -1;