]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix #839: Memory grows unexpectedly with large RPZ files.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 29 Sep 2016 08:08:51 +0000 (08:08 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 29 Sep 2016 08:08:51 +0000 (08:08 +0000)
git-svn-id: file:///svn/unbound/trunk@3872 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
services/localzone.c

index 9071974926bb60831d2178217a29e260ab880a33..2dcaa4650907ab6ab9eb2aec8490cb60f0a5050a 100644 (file)
@@ -1,5 +1,6 @@
 29 September 2016: Wouter
        - Fix #838: 1.5.10 cannot be built on Solaris, undefined PATH_MAX.
+       - Fix #839: Memory grows unexpectedly with large RPZ files.
 
 27 September 2016: Wouter
        - tag for 1.5.10 release
index 3268477d769c8bc89b24c4c328750bc1c8a01304..6446e3f2620540b4383dd7b09040a9643130bb36 100644 (file)
@@ -154,7 +154,7 @@ local_zone_create(uint8_t* nm, size_t len, int labs,
        z->namelen = len;
        z->namelabs = labs;
        lock_rw_init(&z->lock);
-       z->region = regional_create();
+       z->region = regional_create_custom(sizeof(struct regional));
        if(!z->region) {
                free(z);
                return NULL;