aboutsummaryrefslogtreecommitdiffstats
path: root/packet-smb-logon.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-07-13 07:04:23 +0000
committerGuy Harris <guy@alum.mit.edu>2001-07-13 07:04:23 +0000
commit9d191e7f039a3ce4e64fa90d99347416d9cc5740 (patch)
tree8aabd3f21ede04f35ee73797b84f70cd770a3c9d /packet-smb-logon.c
parente48e846a6a5a78b0249ef95915bf026169dcff16 (diff)
downloadwireshark-9d191e7f039a3ce4e64fa90d99347416d9cc5740.tar.gz
wireshark-9d191e7f039a3ce4e64fa90d99347416d9cc5740.tar.bz2
wireshark-9d191e7f039a3ce4e64fa90d99347416d9cc5740.zip
Set "pinfo->current_proto" in the browsser dissector.
Set the protocol and info columns before fetching anything that might cause an exception. Add some more different fields for the different types of host names in browser packets. Force an exception to be thrown if there's no NUL terminator for a name in the tvbuff. svn path=/trunk/; revision=3711
Diffstat (limited to 'packet-smb-logon.c')
-rw-r--r--packet-smb-logon.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/packet-smb-logon.c b/packet-smb-logon.c
index f678e82ee4..11987fa99a 100644
--- a/packet-smb-logon.c
+++ b/packet-smb-logon.c
@@ -2,7 +2,7 @@
* Routines for SMB net logon packet dissection
* Copyright 2000, Jeffrey C. Foster <jfoste@woodward.com>
*
- * $Id: packet-smb-logon.c,v 1.18 2001/07/08 23:33:04 guy Exp $
+ * $Id: packet-smb-logon.c,v 1.19 2001/07/13 07:04:23 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -804,11 +804,13 @@ dissect_smb_logon(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
pinfo->current_proto = "NETLOGON";
- /* get the Command field */
- cmd = tvb_get_guint8(tvb, offset);
-
if (check_col(pinfo->fd, COL_PROTOCOL))
col_set_str(pinfo->fd, COL_PROTOCOL, "NETLOGON");
+ if (check_col(pinfo->fd, COL_INFO))
+ col_clear(pinfo->fd, COL_INFO);
+
+ /* get the Command field */
+ cmd = tvb_get_guint8(tvb, offset);
if (check_col(pinfo->fd, COL_INFO))
col_add_str(pinfo->fd, COL_INFO, val_to_str(cmd, commands, "Unknown Command:%02x") );