From: Wouter Wijngaards Date: Tue, 8 Sep 2009 08:24:44 +0000 (+0000) Subject: lint fix X-Git-Tag: release-1.4.0rc1~82 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=30d0bf14eb756209c84446490618d03509b00a0d;p=thirdparty%2Funbound.git lint fix git-svn-id: file:///svn/unbound/trunk@1821 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/daemon/cachedump.c b/daemon/cachedump.c index da3cc6023..69341940d 100644 --- a/daemon/cachedump.c +++ b/daemon/cachedump.c @@ -489,6 +489,7 @@ move_into_cache(struct ub_packed_rrset_key* k, s += d->rr_len[i]; ad = (struct packed_rrset_data*)malloc(s); if(!ad) { + log_warn("error out of memory"); ub_packed_rrset_parsedelete(ak, &worker->alloc); return 0; } @@ -592,11 +593,7 @@ load_rrset(SSL* ssl, ldns_buffer* buf, struct worker* worker) return 1; } - i= move_into_cache(rk, d, worker); - if(!i) { - log_warn("move into cache failed"); - } - return i; + return move_into_cache(rk, d, worker); } /** load rrset cache */ diff --git a/ldns-src.tar.gz b/ldns-src.tar.gz index ef104e799..3039736be 100644 Binary files a/ldns-src.tar.gz and b/ldns-src.tar.gz differ