1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s4-dns: fixed a crash bug in dlz_bind9 code

we need to keep el_ctx for the next part of the loop
This commit is contained in:
Andrew Tridgell 2010-12-21 11:57:50 +11:00
parent b9a2852fdd
commit 8c04657600

View File

@ -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;
}
}