diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-10-17 12:10:10 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-10-17 14:07:24 +0200 |
commit | ebcf45b5506013b2cbcc706e09f26198c07382d3 (patch) | |
tree | 9a55cf2821d209a4eee64d47a055a2ca343553b8 | |
parent | d9558fdc34a690230cd4927df45f4353bd5cc498 (diff) | |
download | samba-ebcf45b5506013b2cbcc706e09f26198c07382d3.tar.gz samba-ebcf45b5506013b2cbcc706e09f26198c07382d3.tar.bz2 samba-ebcf45b5506013b2cbcc706e09f26198c07382d3.zip |
s4:dlz_bind9: add no memory checks
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Oct 17 14:07:25 CEST 2011 on sn-devel-104
-rw-r--r-- | source4/dns_server/dlz_bind9.c | 4 |
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; |