From 9c5aa0bef43e1b8db1c322e578b861eae486bd95 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 7 May 2012 16:14:07 -0400 Subject: [PATCH] addns: Fix talloc hiereachy Attach request to local memory context not to potentially long lived connection --- lib/addns/dnssock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/addns/dnssock.c b/lib/addns/dnssock.c index aaeb3f03fa6..9e769097ba9 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);