From 8c04657600cd6702dbfc66744fe2268c59ebea0b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 21 Dec 2010 11:57:50 +1100 Subject: [PATCH] s4-dns: fixed a crash bug in dlz_bind9 code we need to keep el_ctx for the next part of the loop --- source4/dns_server/dlz_bind9.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/source4/dns_server/dlz_bind9.c b/source4/dns_server/dlz_bind9.c index 7e18165e5f5..dc4c4bcd1e1 100644 --- a/source4/dns_server/dlz_bind9.c +++ b/source4/dns_server/dlz_bind9.c @@ -821,13 +821,11 @@ _PUBLIC_ isc_result_t dlz_allnodes(const char *zone, void *dbdata, if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) { state->log(ISC_LOG_ERROR, "samba_dlz: failed to parse dnsRecord for %s", ldb_dn_get_linearized(dn)); - talloc_free(el_ctx); continue; } result = b9_putnamedrr(state, allnodes, name, &rec); if (result != ISC_R_SUCCESS) { - talloc_free(el_ctx); continue; } }