build: Remove all references to libuuid
[sfrench/samba-autobuild/.git] / lib / addns / dnssock.c
index 42b4e2d40f0457ae2d426236fb715e411e341ddf..9e769097ba961543e92ce9ec886ed378344fb0ee 100644 (file)
@@ -250,7 +250,7 @@ static DNS_ERROR dns_receive_tcp(TALLOC_CTX *mem_ctx,
        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;
        }
 
@@ -262,7 +262,7 @@ static DNS_ERROR dns_receive_tcp(TALLOC_CTX *mem_ctx,
        buf->size = ntohs(len);
 
        if (buf->size) {
-               if (!(buf->data = TALLOC_ARRAY(buf, uint8, buf->size))) {
+               if (!(buf->data = talloc_array(buf, uint8, buf->size))) {
                        TALLOC_FREE(buf);
                        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;
 
-       if (!(buf = TALLOC_ZERO_P(mem_ctx, struct dns_buffer))) {
+       if (!(buf = talloc_zero(mem_ctx, struct dns_buffer))) {
                return ERROR_DNS_NO_MEMORY;
        }
 
@@ -295,7 +295,7 @@ static DNS_ERROR dns_receive_udp(TALLOC_CTX *mem_ctx,
         * UDP based DNS can only be 512 bytes
         */
 
-       if (!(buf->data = TALLOC_ARRAY(buf, uint8, 512))) {
+       if (!(buf->data = talloc_array(buf, uint8, 512))) {
                TALLOC_FREE(buf);
                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;
 
-       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);