summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2012-05-07 16:14:07 -0400
committerAlexander Bokovoy <ab@samba.org>2012-05-23 17:51:48 +0300
commit9c5aa0bef43e1b8db1c322e578b861eae486bd95 (patch)
treef536c446006852e66811c547385ee04cdaee28c3
parent37866df4ee51e2bf62d26be9d87a22d94106a95a (diff)
downloadsamba-9c5aa0bef43e1b8db1c322e578b861eae486bd95.tar.gz
samba-9c5aa0bef43e1b8db1c322e578b861eae486bd95.tar.bz2
samba-9c5aa0bef43e1b8db1c322e578b861eae486bd95.zip
addns: Fix talloc hiereachy
Attach request to local memory context not to potentially long lived connection
-rw-r--r--lib/addns/dnssock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/addns/dnssock.c b/lib/addns/dnssock.c
index aaeb3f03fa..9e769097ba 100644
--- a/lib/addns/dnssock.c
+++ b/lib/addns/dnssock.c
@@ -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);