fix crash for hauke

git-svn-id: file:///svn/unbound/trunk@1933 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2009-12-09 16:27:13 +00:00
parent c68aebb3d7
commit 1d2c4f70fa

View file

@ -1430,7 +1430,7 @@ val_neg_getmsg(struct val_neg_cache* neg, struct query_info* qinfo,
msg = neg_nsec3_proof_ds(zone, qinfo->qname, qinfo->qname_len,
zname_labs+1, buf, rrset_cache, region, now);
if(addsoa && !add_soa(rrset_cache, now, region, msg, zone)) {
if(msg && addsoa && !add_soa(rrset_cache, now, region, msg, zone)) {
lock_basic_unlock(&neg->lock);
return NULL;
}