build: Remove all references to libuuid
[sfrench/samba-autobuild/.git] / lib / addns / dnssock.c
index aaeb3f03fa6c55ba557993a8353f35c73d29484f..9e769097ba961543e92ce9ec886ed378344fb0ee 100644 (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);