summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-12-21 11:57:50 +1100
committerAndrew Tridgell <tridge@samba.org>2010-12-21 02:42:37 +0100
commit8c04657600cd6702dbfc66744fe2268c59ebea0b (patch)
tree10185cdebbeb8f7d6a7f9bce552327de5869caf9
parentb9a2852fdd68a0691ff567557824be44bb08b27a (diff)
downloadsamba-8c04657600cd6702dbfc66744fe2268c59ebea0b.tar.gz
samba-8c04657600cd6702dbfc66744fe2268c59ebea0b.tar.bz2
samba-8c04657600cd6702dbfc66744fe2268c59ebea0b.zip
s4-dns: fixed a crash bug in dlz_bind9 code
we need to keep el_ctx for the next part of the loop
-rw-r--r--source4/dns_server/dlz_bind9.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source4/dns_server/dlz_bind9.c b/source4/dns_server/dlz_bind9.c
index 7e18165e5f..dc4c4bcd1e 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;
}
}