From 002060855fecdc22082efc7ef80b3971f5ef87fd Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 6 Nov 2007 01:09:24 +0100 Subject: 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) --- source3/utils/smbfilter.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3') 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"); -- cgit