aboutsummaryrefslogtreecommitdiffstats
path: root/main/djbdns/1.05-response.patch
blob: eb6ae59049a225b508e4324221266dc5d47edc16 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- a/response.c.orig     2009-02-24 21:04:06.000000000 -0800
+++ b/response.c  2009-02-24 21:04:25.000000000 -0800
@@ -34,7 +34,7 @@
         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;