git.samba.org
/
tprouty
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix an uninitialized variable, Coverity ID 481
[tprouty/samba.git]
/
source3
/
libaddns
/
dnssock.c
diff --git
a/source3/libaddns/dnssock.c
b/source3/libaddns/dnssock.c
index 72bbf60d45c6c03dd0ab4e5df7783eb6a2a897e8..7c8bd418e5765e5dc97ccd3e85a1c0dfb8aca1f9 100644
(file)
--- 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;