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:
parent
37866df4ee
commit
9c5aa0bef4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user