From be7456f41bce09cffcaf75487b369c4d60263af2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henryk=20Pl=C3=B6tz?= Date: Fri, 3 Oct 2014 20:06:24 +0200 Subject: Apply 0003-djbdns-misformats-some-long-response-packets-patch-a.diff SHA1 bc166004c368773086cc4d11648e024644f56b16, contained in djbdns_1.05-8ubuntu1.diff.gz Source was http://archive.ubuntu.com/ubuntu/pool/universe/d/djbdns/djbdns_1.05-8ubuntu1.diff.gz, SHA1 0813f9370548f8699d442207bdd36ae9ef567b15 --- response.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'response.c') diff --git a/response.c b/response.c index ba90c89..33b2fb1 100644 --- a/response.c +++ b/response.c @@ -34,7 +34,7 @@ int response_addname(const char *d) uint16_pack_big(buf,49152 + name_ptr[i]); return response_addbytes(buf,2); } - if (dlen <= 128) + if ((dlen <= 128) && (response_len < 16384)) if (name_num < NAMES) { byte_copy(name[name_num],dlen,d); name_ptr[name_num] = response_len; -- cgit v1.2.3