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

addns: Fix talloc hiereachy

Attach request to local memory context not to potentially long lived connection
This commit is contained in:
Simo Sorce 2012-05-07 16:14:07 -04:00 committed by Alexander Bokovoy
parent 37866df4ee
commit 9c5aa0bef4

View File

@ -340,7 +340,7 @@ DNS_ERROR dns_transaction(TALLOC_CTX *mem_ctx, struct dns_connection *conn,
struct dns_buffer *buf = NULL;
DNS_ERROR err;
err = dns_marshall_request(conn, req, &buf);
err = dns_marshall_request(mem_ctx, req, &buf);
if (!ERR_DNS_IS_OK(err)) goto error;
err = dns_send(conn, buf);