aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenryk Plötz <henryk@ploetzli.ch>2014-10-03 20:06:24 +0200
committerHenryk Plötz <henryk@ploetzli.ch>2014-10-03 20:13:50 +0200
commitbe7456f41bce09cffcaf75487b369c4d60263af2 (patch)
treecc1760a021e4fdaf9ae87ffb4f5773b5fa2990cb
parentc44d8b51ffb5a413f8bbdbd9991bbc573853e397 (diff)
downloadtinydnssec-be7456f41bce09cffcaf75487b369c4d60263af2.tar.gz
tinydnssec-be7456f41bce09cffcaf75487b369c4d60263af2.tar.bz2
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
-rw-r--r--response.c2
1 files changed, 1 insertions, 1 deletions
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;