From ebcf45b5506013b2cbcc706e09f26198c07382d3 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 17 Oct 2011 12:10:10 +0200 Subject: s4:dlz_bind9: add no memory checks metze Autobuild-User: Stefan Metzmacher Autobuild-Date: Mon Oct 17 14:07:25 CEST 2011 on sn-devel-104 --- source4/dns_server/dlz_bind9.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit