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
/
types.c
diff --git
a/src/types.c
b/src/types.c
index 65b9065947c7150b84051166320ce571bf06b6b2..78db1e2179d33b27151e1fc6f140fa264532c321 100644
(file)
--- a/
src/types.c
+++ b/
src/types.c
@@
-838,6
+838,7
@@
static adns_status pap_findaddrs(const parseinfo *pai, adns_rr_hostaddr *ha,
&type, &class, &ttl, &rdlen, &rdstart,
pai->dgram, pai->dglen, dmstart, &ownermatched);
if (st) return st;
+ if (type==-1) continue;
if (!ownermatched || class != DNS_CLASS_IN) continue;
typef= addr_rrtypeflag(type);
if (!(want & typef)) continue;