summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/dns_server/dlz_bind9.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/dns_server/dlz_bind9.c b/source4/dns_server/dlz_bind9.c
index 58b47ce566..e37a66e2d3 100644
--- a/source4/dns_server/dlz_bind9.c
+++ b/source4/dns_server/dlz_bind9.c
@@ -1021,6 +1021,10 @@ _PUBLIC_ isc_result_t dlz_configure(dns_view_t *view, void *dbdata)
continue;
}
zone_dn = ldb_dn_copy(tmp_ctx, dn);
+ if (zone_dn == NULL) {
+ talloc_free(tmp_ctx);
+ return ISC_R_NOMEMORY;
+ }
if (!b9_has_soa(state, zone_dn, zone)) {
continue;