build: Remove all references to libuuid
[sfrench/samba-autobuild/.git] / lib / addns / dnssock.c
index da8a52100e31eae7582d5cd74b6818a4bd861ffc..9e769097ba961543e92ce9ec886ed378344fb0ee 100644 (file)
@@ -250,7 +250,7 @@ static DNS_ERROR dns_receive_tcp(TALLOC_CTX *mem_ctx,
        DNS_ERROR err;
        uint16 len;
 
        DNS_ERROR err;
        uint16 len;
 
-       if (!(buf = TALLOC_ZERO_P(mem_ctx, struct dns_buffer))) {
+       if (!(buf = talloc_zero(mem_ctx, struct dns_buffer))) {
                return ERROR_DNS_NO_MEMORY;
        }
 
                return ERROR_DNS_NO_MEMORY;
        }
 
@@ -287,7 +287,7 @@ static DNS_ERROR dns_receive_udp(TALLOC_CTX *mem_ctx,
        struct dns_buffer *buf;
        ssize_t received;
 
        struct dns_buffer *buf;
        ssize_t received;
 
-       if (!(buf = TALLOC_ZERO_P(mem_ctx, struct dns_buffer))) {
+       if (!(buf = talloc_zero(mem_ctx, struct dns_buffer))) {
                return ERROR_DNS_NO_MEMORY;
        }
 
                return ERROR_DNS_NO_MEMORY;
        }
 
@@ -340,7 +340,7 @@ DNS_ERROR dns_transaction(TALLOC_CTX *mem_ctx, struct dns_connection *conn,
        struct dns_buffer *buf = NULL;
        DNS_ERROR err;
 
        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);
        if (!ERR_DNS_IS_OK(err)) goto error;
 
        err = dns_send(conn, buf);