From: Volker Lendecke Date: Sun, 4 Jan 2009 16:28:24 +0000 (+0100) Subject: Fix the build of smbfilter X-Git-Tag: samba-4.0.0alpha6~283^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c4ff426f673ca4be01a599af80a9b99616b1543a;p=thirdparty%2Fsamba.git Fix the build of smbfilter --- diff --git a/source3/utils/smbfilter.c b/source3/utils/smbfilter.c index e7b71bd5db2..1fdea818d6e 100644 --- a/source3/utils/smbfilter.c +++ b/source3/utils/smbfilter.c @@ -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];