summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-11-06 01:09:24 +0100
committerMichael Adam <obnox@samba.org>2007-11-06 01:10:05 +0100
commit002060855fecdc22082efc7ef80b3971f5ef87fd (patch)
treeceed8b865885c774ddfcfc2d9968a25e7b1a66ff
parent251d755e90ab8ae2511b553dfa519512aedb9a54 (diff)
downloadsamba-002060855fecdc22082efc7ef80b3971f5ef87fd.tar.gz
samba-002060855fecdc22082efc7ef80b3971f5ef87fd.tar.bz2
samba-002060855fecdc22082efc7ef80b3971f5ef87fd.zip
Fix another segfault and make smbfilter run again.
This fix is not complete yet (loop after "client closed connection") but at least it starts again... Micheal (This used to be commit e2ffc6053dc9453fc49545db47374ed42e8efecd)
-rw-r--r--source3/utils/smbfilter.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/utils/smbfilter.c b/source3/utils/smbfilter.c
index 55c0c4dec2..79b8873888 100644
--- a/source3/utils/smbfilter.c
+++ b/source3/utils/smbfilter.c
@@ -176,11 +176,13 @@ static void start_filter(char *desthost)
{
int s, c;
struct sockaddr_storage dest_ss;
+ struct sockaddr_storage my_ss;
CatchChild();
/* start listening on port 445 locally */
- s = open_socket_in(SOCK_STREAM, 445, 0, 0, True);
+ my_ss.ss_family = AF_INET;
+ s = open_socket_in(SOCK_STREAM, 445, 0, &my_ss, True);
if (s == -1) {
d_printf("bind failed\n");