Fix the build of smbfilter
authorVolker Lendecke <vl@samba.org>
Sun, 4 Jan 2009 16:28:24 +0000 (17:28 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 4 Jan 2009 16:29:27 +0000 (17:29 +0100)
source3/utils/smbfilter.c

index e7b71bd5db280540052412e7a0eefb39df15e897..1fdea818d6e47ae3a5d4ade03a4bc5c44678bfc9 100644 (file)
@@ -141,10 +141,11 @@ static bool send_smb(int fd, char *buffer)
 
 static void filter_child(int c, struct sockaddr_storage *dest_ss)
 {
-       int s;
+       NTSTATUS status;
+       int s = -1;
 
        /* we have a connection from a new client, now connect to the server */
-       s = open_socket_out(dest_ss, 445, LONG_CONNECT_TIMEOUT);
+       status = open_socket_out(dest_ss, 445, LONG_CONNECT_TIMEOUT, &s);
 
        if (s == -1) {
                char addr[INET6_ADDRSTRLEN];