summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libaddns/dnssock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libaddns/dnssock.c b/source3/libaddns/dnssock.c
index 72bbf60d45..7c8bd418e5 100644
--- a/source3/libaddns/dnssock.c
+++ b/source3/libaddns/dnssock.c
@@ -118,6 +118,7 @@ static DNS_ERROR dns_udp_open( const char *nameserver,
the receiver (in this example case "123.456.789.1")
and the specified port number. */
+ ZERO_STRUCT(RecvAddr);
RecvAddr.sin_family = AF_INET;
RecvAddr.sin_port = htons( DNS_UDP_PORT );
RecvAddr.sin_addr.s_addr = ulAddress;