From 4a23c07bf48b22f2bcc2575ca312bf0e351899fc Mon Sep 17 00:00:00 2001 From: Andy Green Date: Thu, 27 Feb 2025 07:39:34 +0000 Subject: [PATCH] async dns: allow up to 8 x 128-char CNAMEs from 4 https://github.com/warmcat/libwebsockets/issues/3329 Extra ~600 bytes stack needed might be a struggle for RTOS, trimmed from 10 recommended in issue. --- lib/system/async-dns/async-dns-parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/system/async-dns/async-dns-parse.c b/lib/system/async-dns/async-dns-parse.c index 8af5b68da..9cf050a1f 100644 --- a/lib/system/async-dns/async-dns-parse.c +++ b/lib/system/async-dns/async-dns-parse.c @@ -157,7 +157,7 @@ lws_adns_iterate(lws_adns_q_t *q, const uint8_t *pkt, int len, const char *expname, lws_async_dns_find_t cb, void *opaque) { const uint8_t *e = pkt + len, *p, *pay; - struct label_stack stack[4]; + struct label_stack stack[8]; int n = 0, stp = 0, ansc, m; uint16_t rrtype, rrpaylen; char *sp, inq;