diff options
author | Volker Lendecke <vl@samba.org> | 2009-01-04 17:28:24 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-01-04 17:29:27 +0100 |
commit | c4ff426f673ca4be01a599af80a9b99616b1543a (patch) | |
tree | 7dcf2c493f07b3cd58643c1b57420c31001fa24a | |
parent | b4f8996ac79309a3ff4cd299e7978ec9f993a5c4 (diff) | |
download | samba-c4ff426f673ca4be01a599af80a9b99616b1543a.tar.gz samba-c4ff426f673ca4be01a599af80a9b99616b1543a.tar.bz2 samba-c4ff426f673ca4be01a599af80a9b99616b1543a.zip |
Fix the build of smbfilter
-rw-r--r-- | source3/utils/smbfilter.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/utils/smbfilter.c b/source3/utils/smbfilter.c index e7b71bd5db..1fdea818d6 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]; |