]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
silence NULL pointer dereference warning
authorMark Andrews <marka@isc.org>
Thu, 1 May 2014 04:23:23 +0000 (14:23 +1000)
committerMark Andrews <marka@isc.org>
Thu, 1 May 2014 04:23:56 +0000 (14:23 +1000)
(cherry picked from commit 44421416727b686cc88b46ce6797968f97e7b6c2)

lib/dns/rrl.c

index 3f478937619b26ce432ec887c58f7ab644bca8af..766d007514c01f85e5c43c0c40610783aeba1b41 100644 (file)
@@ -253,6 +253,7 @@ expand_entries(dns_rrl_t *rrl, int new) {
 
 static inline dns_rrl_bin_t *
 get_bin(dns_rrl_hash_t *hash, unsigned int hval) {
+       INSIST(hash != NULL);
        return (&hash->bins[hval % hash->length]);
 }