]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Properly check for allocation failure in local_data_find_tag_datas.
authorRalph Dolmans <ralph@nlnetlabs.nl>
Wed, 12 Apr 2017 12:44:53 +0000 (12:44 +0000)
committerRalph Dolmans <ralph@nlnetlabs.nl>
Wed, 12 Apr 2017 12:44:53 +0000 (12:44 +0000)
git-svn-id: file:///svn/unbound/trunk@4109 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
services/localzone.c

index 83242d9fcc909354349cf639c515f6202d0dd21d..79aa018e1cef718e62fb0b81032d435a584a1f38 100644 (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.
index 54a8660b88a5c96c9f7cdcda6dcc17c3745ec0ee..dcce46e863e403f9886a57f1145d32f5d661903e 100644 (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)