summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-11-05 23:17:19 -0800
committerJeremy Allison <jra@samba.org>2007-11-05 23:17:19 -0800
commit85b48d792f915def5521e83f11aa0c13f9a0de6b (patch)
tree6d6034289b96b6c09fbc1193c2da1b123093df9c /source3/utils
parent002060855fecdc22082efc7ef80b3971f5ef87fd (diff)
downloadsamba-85b48d792f915def5521e83f11aa0c13f9a0de6b.tar.gz
samba-85b48d792f915def5521e83f11aa0c13f9a0de6b.tar.bz2
samba-85b48d792f915def5521e83f11aa0c13f9a0de6b.zip
Ensure we null out the address correctly.
Jeremy. (This used to be commit e1fcd851ab38165eb0e959cdc02ff067614f8b28)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/smbfilter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/utils/smbfilter.c b/source3/utils/smbfilter.c
index 79b8873888..2051c606a0 100644
--- a/source3/utils/smbfilter.c
+++ b/source3/utils/smbfilter.c
@@ -181,7 +181,8 @@ static void start_filter(char *desthost)
CatchChild();
/* start listening on port 445 locally */
- my_ss.ss_family = AF_INET;
+
+ zero_addr(&my_ss);
s = open_socket_in(SOCK_STREAM, 445, 0, &my_ss, True);
if (s == -1) {