From 36af26600107ec744413c811cdce7fad24450195 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sat, 16 Oct 2021 07:37:36 +0100 Subject: [PATCH] adns: fix label limit check --- lib/system/async-dns/async-dns-parse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;