chiark
/
gitweb
/
~ianmdlvl
/
adns.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
DNS packet parsing: Slight fix when packet is truncated
[adns.git]
/
src
/
reply.c
diff --git
a/src/reply.c
b/src/reply.c
index 0379ca441ff52f90feefdce6cf3dc333c7b808a7..ca0de2f4a3af07c217585d2f8585ece00075803b 100644
(file)
--- a/
src/reply.c
+++ b/
src/reply.c
@@
-340,8
+340,8
@@
void adns__procdgram(adns_state ads, const byte *dgram, int dglen,
&ownermatched);
assert(!st); assert(rrtype != -1);
if (rri < restartfrom ||
- rrclass != DNS_CLASS_IN ||
rrtype != (qu->answer->type & adns_rrt_typemask) ||
+ rrclass != DNS_CLASS_IN ||
!ownermatched)
continue;
adns__update_expires(qu,ttl,now);