s3-talloc Change TALLOC_ZERO_P() to talloc_zero()
[nivanova/samba-autobuild/.git] / lib / addns / dnssock.c
index da8a52100e31eae7582d5cd74b6818a4bd861ffc..aaeb3f03fa6c55ba557993a8353f35c73d29484f 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;
        }
 
@@ -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;
        }