aboutsummaryrefslogtreecommitdiff
path: root/contrib/unbound/services/cache/rrset.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/unbound/services/cache/rrset.c')
-rw-r--r--contrib/unbound/services/cache/rrset.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/unbound/services/cache/rrset.c b/contrib/unbound/services/cache/rrset.c
index a05ae5a56b78..6d5c24f8053e 100644
--- a/contrib/unbound/services/cache/rrset.c
+++ b/contrib/unbound/services/cache/rrset.c
@@ -68,6 +68,8 @@ struct rrset_cache* rrset_cache_create(struct config_file* cfg,
struct rrset_cache *r = (struct rrset_cache*)slabhash_create(slabs,
startarray, maxmem, ub_rrset_sizefunc, ub_rrset_compare,
ub_rrset_key_delete, rrset_data_delete, alloc);
+ if(!r)
+ return NULL;
slabhash_setmarkdel(&r->table, &rrset_markdel);
return r;
}