summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Hetterich <hhetter@novell.com>2010-05-23 23:18:58 +0200
committerAndreas Schneider <asn@samba.org>2010-05-27 10:27:07 +0200
commitdd895e526c4751865c587819d9e958c8fce9190b (patch)
treeac561f6b4de4eca9960af8c3834882dfd808acf2
parent85a385324958c41ac9c017421b35db1eeabed87c (diff)
downloadsamba-dd895e526c4751865c587819d9e958c8fce9190b.tar.gz
samba-dd895e526c4751865c587819d9e958c8fce9190b.tar.bz2
samba-dd895e526c4751865c587819d9e958c8fce9190b.zip
vfs_smb_traffic_analyzer.c: set the len variable when running protocol v1.
Signed-off-by: Andreas Schneider <asn@samba.org>
-rw-r--r--source3/modules/vfs_smb_traffic_analyzer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/modules/vfs_smb_traffic_analyzer.c b/source3/modules/vfs_smb_traffic_analyzer.c
index dcb01994c3..75450c79df 100644
--- a/source3/modules/vfs_smb_traffic_analyzer.c
+++ b/source3/modules/vfs_smb_traffic_analyzer.c
@@ -471,6 +471,7 @@ static void smb_traffic_analyzer_send_data(vfs_handle_struct *handle,
tm->tm_min,
tm->tm_sec,
(int)seconds);
+ len = strlen(str);
if (write_data(rf_sock->sock, str, len) != len) {
DEBUG(1, ("smb_traffic_analyzer_send_data_socket: "
"error sending V1 protocol data to socket!\n"));