- Properly check for allocation failure in local_data_find_tag_datas.

git-svn-id: file:///svn/unbound/trunk@4109 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Ralph Dolmans 2017-04-12 12:44:53 +00:00
parent 22339c9ba9
commit 2be864c218
2 changed files with 2 additions and 1 deletions

View File

@ -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.

View File

@ -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)