diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-02-19 13:54:44 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-03-05 10:06:23 -0800 |
commit | 3667a2eee388915fca2b894ae37375eeed46e941 (patch) | |
tree | fbd6b8f06e3661661013a7fe55778f91e8569626 /source3/utils | |
parent | 9ed7555c82b4c7c14e12ab08483707e68080e152 (diff) | |
download | samba-3667a2eee388915fca2b894ae37375eeed46e941.tar.gz samba-3667a2eee388915fca2b894ae37375eeed46e941.tar.xz samba-3667a2eee388915fca2b894ae37375eeed46e941.zip |
s3:utils/smbfilter: use a local variable for the packet buffer
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/smbfilter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/smbfilter.c b/source3/utils/smbfilter.c index 33f1a90cf95..734971bb2aa 100644 --- a/source3/utils/smbfilter.c +++ b/source3/utils/smbfilter.c @@ -35,7 +35,6 @@ #define CLI_CAPABILITY_SET 0 static char *netbiosname; -static char packet[BUFFER_SIZE]; static void save_file(const char *fname, void *ppacket, size_t length) { @@ -178,6 +177,7 @@ static void filter_child(int c, struct sockaddr_storage *dest_ss) { NTSTATUS status; int s = -1; + uint8_t packet[128*1024]; /* we have a connection from a new client, now connect to the server */ status = open_socket_out(dest_ss, TCP_SMB_PORT, LONG_CONNECT_TIMEOUT, &s); |