From: Ralph Dolmans Date: Wed, 12 Apr 2017 12:44:53 +0000 (+0000) Subject: - Properly check for allocation failure in local_data_find_tag_datas. X-Git-Tag: release-1.6.2rc1~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2be864c2184cf102192614647a503c167d518ff0;p=thirdparty%2Funbound.git - Properly check for allocation failure in local_data_find_tag_datas. git-svn-id: file:///svn/unbound/trunk@4109 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index 83242d9fc..79aa018e1 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,6 +1,7 @@ 12 April 2017: Ralph - Fix #1247: unbound does not shorten source prefix length when forwarding ECS. + - Properly check for allocation failure in local_data_find_tag_datas. 11 April 2017: Ralph - Display ECS module memory usage. diff --git a/services/localzone.c b/services/localzone.c index 54a8660b8..dcce46e86 100644 --- a/services/localzone.c +++ b/services/localzone.c @@ -1312,7 +1312,7 @@ local_data_find_tag_datas(const struct query_info* qinfo, sldns_wirerr_get_rdatawl(rr, len, 1), d->rr_len[d->count]); if(!d->rr_data[d->count]) - if(!d) return 0; /* out of memory */ + return 0; /* out of memory */ d->count++; } if(r->rk.dname)