aboutsummaryrefslogtreecommitdiffstats
path: root/packet-smb.c
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@ns.aus.com>1999-12-05 08:22:22 +0000
committerRichard Sharpe <sharpe@ns.aus.com>1999-12-05 08:22:22 +0000
commit7a41e5568f140e2387b88d93b1f51a4988e26b01 (patch)
tree615d7da60c91bae6a2b000b9b78a64c6f687d1ae /packet-smb.c
parentaf8888e47cfcfe43c71fc1a7123b01c5628dd90d (diff)
Some small fixes to the smb decoding of sessionsetup&X.
Will have to do some more soon. svn path=/trunk/; revision=1216
Diffstat (limited to 'packet-smb.c')
-rw-r--r--packet-smb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/packet-smb.c b/packet-smb.c
index cb9694863a..6ca83d01f1 100644
--- a/packet-smb.c
+++ b/packet-smb.c
@@ -2,7 +2,7 @@
* Routines for smb packet dissection
* Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com>
*
- * $Id: packet-smb.c,v 1.49 1999/11/30 03:46:46 gram Exp $
+ * $Id: packet-smb.c,v 1.50 1999/12/05 08:22:22 sharpe Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@unicom.net>
@@ -2310,7 +2310,7 @@ dissect_ssetup_andx_smb(const u_char *pd, int offset, frame_data *fd, proto_tree
if (tree) {
- proto_tree_add_text(tree, offset, strlen(ANSIPassword) + 1, "ANSI Password: %s", ANSIPassword);
+ proto_tree_add_text(tree, offset, ANSIAccountPasswordLength, "ANSI Password: %s", format_text(ANSIPassword, ANSIAccountPasswordLength));
}
@@ -2325,11 +2325,11 @@ dissect_ssetup_andx_smb(const u_char *pd, int offset, frame_data *fd, proto_tree
if (tree) {
- proto_tree_add_text(tree, offset, strlen(UNICODEPassword) + 1, "UNICODE Password: %s", UNICODEPassword);
+ proto_tree_add_text(tree, offset, UNICODEAccountPasswordLength, "UNICODE Password: %s", format_text(UNICODEPassword, UNICODEAccountPasswordLength));
}
- offset += strlen(UNICODEPassword) + 1; /* Skip UNICODE Password */
+ offset += UNICODEAccountPasswordLength; /* Skip UNICODE Password */
}