summaryrefslogtreecommitdiff
path: root/source3/libaddns
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-03-06 11:42:48 +0100
committerVolker Lendecke <vl@samba.org>2008-03-06 11:47:31 +0100
commit7215b1f69aad2f12a8bc1e3647eaf0425d45f63b (patch)
tree1e0055f2ff1bdfae08736d760e40f45f6c4c1f21 /source3/libaddns
parent439fe513c168955194730904f6ec5c7ddb4f972c (diff)
downloadsamba-7215b1f69aad2f12a8bc1e3647eaf0425d45f63b.tar.gz
samba-7215b1f69aad2f12a8bc1e3647eaf0425d45f63b.tar.bz2
samba-7215b1f69aad2f12a8bc1e3647eaf0425d45f63b.zip
Fix an uninitialized variable, Coverity ID 481
(This used to be commit 9e4f576abfdd5605f4db9bb87c22ec68c94ff850)
Diffstat (limited to 'source3/libaddns')
-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;