summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-01-04 17:28:24 +0100
committerVolker Lendecke <vl@samba.org>2009-01-04 17:29:27 +0100
commitc4ff426f673ca4be01a599af80a9b99616b1543a (patch)
tree7dcf2c493f07b3cd58643c1b57420c31001fa24a /source3
parentb4f8996ac79309a3ff4cd299e7978ec9f993a5c4 (diff)
downloadsamba-c4ff426f673ca4be01a599af80a9b99616b1543a.tar.gz
samba-c4ff426f673ca4be01a599af80a9b99616b1543a.tar.bz2
samba-c4ff426f673ca4be01a599af80a9b99616b1543a.zip
Fix the build of smbfilter
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/smbfilter.c5
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];