X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=adns.git;a=blobdiff_plain;f=src%2Freply.c;fp=src%2Freply.c;h=ca0de2f4a3af07c217585d2f8585ece00075803b;hp=0379ca441ff52f90feefdce6cf3dc333c7b808a7;hb=d4b6031596d2b42d44ca120db72178d8a86fb658;hpb=ccf05d0f258c7f158b0436f11137702ee78d4ddb diff --git a/src/reply.c b/src/reply.c index 0379ca4..ca0de2f 100644 --- 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);