git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4f8996
)
Fix the build of smbfilter
author
Volker Lendecke
<vl@samba.org>
Sun, 4 Jan 2009 16:28:24 +0000
(17:28 +0100)
committer
Volker Lendecke
<vl@samba.org>
Sun, 4 Jan 2009 16:29:27 +0000
(17:29 +0100)
source3/utils/smbfilter.c
patch
|
blob
|
history
diff --git
a/source3/utils/smbfilter.c
b/source3/utils/smbfilter.c
index e7b71bd5db280540052412e7a0eefb39df15e897..1fdea818d6e47ae3a5d4ade03a4bc5c44678bfc9 100644
(file)
--- 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
);
+ s
tatus = open_socket_out(dest_ss, 445, LONG_CONNECT_TIMEOUT, &s
);
if (s == -1) {
char addr[INET6_ADDRSTRLEN];