diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-11-19 03:53:33 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-11-19 03:53:33 +0000 |
commit | 69f30a1f1273896a24a5475bc7b167d545356e3a (patch) | |
tree | f9554e81e50a82f3331f885396f7a7ff0665397c /packet-smb-logon.c | |
parent | 2030e7e74b477c9880e16b43c41cc21f2bb253aa (diff) | |
download | wireshark-69f30a1f1273896a24a5475bc7b167d545356e3a.tar.gz wireshark-69f30a1f1273896a24a5475bc7b167d545356e3a.tar.bz2 wireshark-69f30a1f1273896a24a5475bc7b167d545356e3a.zip |
"dissect_mailslot_browse()", "dissect_mailslot_lanman()", and
"dissect_smb_logon()" always return TRUE, so just get rid of their
return value.
"call_dissector()" automatically calls the data dissector if the
protocol for the dissector being called is disabled, so we don't have to
check its result and call the data dissector if it returns 0.
svn path=/trunk/; revision=9027
Diffstat (limited to 'packet-smb-logon.c')
-rw-r--r-- | packet-smb-logon.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/packet-smb-logon.c b/packet-smb-logon.c index b995af6eab..5d1f2376b2 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.35 2003/11/16 23:17:21 guy Exp $ + * $Id: packet-smb-logon.c,v 1.36 2003/11/19 03:53:32 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -814,7 +814,7 @@ static int (*dissect_smb_logon_cmds[])(tvbuff_t *tvb, packet_info *pinfo, proto_ }; -static gboolean +static void dissect_smb_logon(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { int offset = 0; @@ -855,8 +855,6 @@ dissect_smb_logon(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) offset = dissect_smb_unknown(tvb, pinfo, smb_logon_tree, offset); } - - return TRUE; } void @@ -1030,5 +1028,5 @@ proto_register_smb_logon( void) proto_register_field_array(proto_smb_logon, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); - new_register_dissector("netlogon", dissect_smb_logon, proto_smb_logon); + register_dissector("netlogon", dissect_smb_logon, proto_smb_logon); } |