]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Check for basic blocks not NULL
authorMatthijs Mekking <matthijs@isc.org>
Wed, 5 Feb 2020 15:50:40 +0000 (16:50 +0100)
committerOndřej Surý <ondrej@isc.org>
Sat, 8 Feb 2020 14:32:42 +0000 (06:32 -0800)
lib/isc/mem.c

index 145a02ee9e67775fefb03ed20d7e4b9b238cc122..8d4c6885fb83f8f736305dddccab5709d770a74b 100644 (file)
@@ -609,6 +609,9 @@ more_frags(isc__mem_t *ctx, size_t new_size) {
                        return (false);
                }
        }
+       if (ctx->basic_blocks == NULL) {
+               return false;
+       }
 
        total_size = ctx->mem_target;
        tmp = ctx->basic_blocks;