git.samba.org
/
sahlberg
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4929e1
)
zero out the sockaddr_in structure before we store the ipv4 data in it to make sure...
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Sun, 6 Jul 2008 22:53:22 +0000
(08:53 +1000)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Sun, 6 Jul 2008 22:53:22 +0000
(08:53 +1000)
common/ctdb_util.c
patch
|
blob
|
history
diff --git
a/common/ctdb_util.c
b/common/ctdb_util.c
index 6856c178a0288d50cc88607c94e098a9cd5abcbb..1b0988d3a740e0fccd38c33acbb1631d00a1d4f7 100644
(file)
--- a/
common/ctdb_util.c
+++ b/
common/ctdb_util.c
@@
-394,6
+394,8
@@
bool parse_ip(const char *addr, ctdb_sock_addr *saddr)
*/
bool parse_ip_mask(const char *s, struct sockaddr_in *ip, unsigned *mask)
{
+ ZERO_STRUCT(*ip);
+
if (!parse_ip_num(s, &ip->sin_addr, mask, '/')) {
return false;
}