first pass at updating head branch to be to be the same as the SAMBA_2_0 branch
[nivanova/samba-autobuild/.git] / source / utils / smbfilter.c
index 643a3ed2ce591033c6e0b6b098d64fbd8a0f7c15..81b10e4519a21ced5369f4163ee12d8f671f4b6a 100644 (file)
@@ -120,7 +120,7 @@ static void filter_child(int c, struct in_addr dest_ip)
                if (s != -1) FD_SET(s, &fds);
                if (c != -1) FD_SET(c, &fds);
 
-               num = sys_select(MAX(s+1, c+1),&fds,NULL, NULL);
+               num = sys_select(MAX(s+1, c+1),&fds,NULL);
                if (num <= 0) continue;
                
                if (c != -1 && FD_ISSET(c, &fds)) {
@@ -159,7 +159,7 @@ static void start_filter(char *desthost)
        CatchChild();
 
        /* start listening on port 139 locally */
-       s = open_socket_in(SOCK_STREAM, 139, 0, 0);
+       s = open_socket_in(SOCK_STREAM, 139, 0, 0, True);
        
        if (s == -1) {
                DEBUG(0,("bind failed\n"));
@@ -184,7 +184,7 @@ static void start_filter(char *desthost)
                FD_ZERO(&fds);
                FD_SET(s, &fds);
 
-               num = sys_select(s+1,&fds,NULL, NULL);
+               num = sys_select(s+1,&fds,NULL);
                if (num > 0) {
                        c = accept(s, &addr, &in_addrlen);
                        if (c != -1) {