summaryrefslogtreecommitdiff
path: root/src/dns/dnsparser.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-01-04 14:20:36 +0000
committerChristian Grothoff <christian@grothoff.org>2012-01-04 14:20:36 +0000
commitc8fe500945cd968e37f2e6c462689e0ada061bce (patch)
tree851e2aebebd9252e69d319c87482ae9425d437c9 /src/dns/dnsparser.c
parent9a1a436d0afdb2b6e4812c0417272fc1ef9f0cec (diff)
downloadgnunet-c8fe500945cd968e37f2e6c462689e0ada061bce.tar.gz
gnunet-c8fe500945cd968e37f2e6c462689e0ada061bce.zip
adding missing file
Diffstat (limited to 'src/dns/dnsparser.c')
-rw-r--r--src/dns/dnsparser.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dns/dnsparser.c b/src/dns/dnsparser.c
index 2a3fd55c0..468c984aa 100644
--- a/src/dns/dnsparser.c
+++ b/src/dns/dnsparser.c
@@ -86,7 +86,10 @@ parse_name (const char *udp_payload,
86 goto error; 86 goto error;
87 len = input[*off]; 87 len = input[*off];
88 if (0 == len) 88 if (0 == len)
89 {
90 (*off)++;
89 break; 91 break;
92 }
90 if (len < 64) 93 if (len < 64)
91 { 94 {
92 if (*off + 1 + len > udp_payload_length) 95 if (*off + 1 + len > udp_payload_length)