summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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);