From: Wouter Wijngaards Date: Wed, 16 Jun 2010 15:05:11 +0000 (+0000) Subject: - Fix assertion failure reported by Kai Storbeck from XS4ALL, the X-Git-Tag: release-1.4.6rc1~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1601f2fd6f750b82963812ceb9f0db9e6e57fe2c;p=thirdparty%2Funbound.git - Fix assertion failure reported by Kai Storbeck from XS4ALL, the assertion was wrong. git-svn-id: file:///svn/unbound/trunk@2154 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/util/data/msgparse.c b/util/data/msgparse.c index 4313140d1..163228339 100644 --- a/util/data/msgparse.c +++ b/util/data/msgparse.c @@ -949,7 +949,7 @@ parse_extract_edns(struct msg_parse* msg, struct edns_data* edns) || found->dname[0] != 0) return LDNS_RCODE_FORMERR; if(found->rr_count != 1) return LDNS_RCODE_FORMERR; } - log_assert(found->rr_first == found->rr_last && found->rr_first); + log_assert(found->rr_first && found->rr_last); /* remove from packet */ if(found_prev) found_prev->rrset_all_next = found->rrset_all_next;