diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2006-09-04 08:18:52 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2006-09-04 08:18:52 +0000 |
commit | 6e040b3a8329ae4ba057b58bf65372ca5a7ba95f (patch) | |
tree | fe3906f04031bb03108436a5178c61647609cf5f /epan/dissectors/packet-kerberos4.c | |
parent | 389e7390e93664ab5aa235af58c0cece9c09354e (diff) |
krb4 is a new style dissector and is called through a handle from krb5 which is also new style.
use call_dissector_only() which is new-style aware and not call_dissector() which is not.
this fixes a recent bug found on the heimdal list.
svn path=/trunk/; revision=19129
Diffstat (limited to 'epan/dissectors/packet-kerberos4.c')
-rw-r--r-- | epan/dissectors/packet-kerberos4.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-kerberos4.c b/epan/dissectors/packet-kerberos4.c index 93dd232c2e..ff35d75485 100644 --- a/epan/dissectors/packet-kerberos4.c +++ b/epan/dissectors/packet-kerberos4.c @@ -282,7 +282,7 @@ dissect_krb4_auth_msg_type(packet_info *pinfo, proto_tree *parent_tree, tvbuff_t return offset; } -static int +static gboolean dissect_krb4(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) { proto_tree *tree; @@ -295,7 +295,7 @@ dissect_krb4(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) */ version=tvb_get_guint8(tvb, offset); if((version!=4)&&(version!=TRANSARC_SPECIAL_VERSION)){ - return 0; + return FALSE; } opcode=tvb_get_guint8(tvb, offset+1); @@ -311,7 +311,7 @@ dissect_krb4(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) case AUTH_MSG_DIE: break; default: - return 0; + return FALSE; } /* create a tree for krb4 */ @@ -348,7 +348,7 @@ dissect_krb4(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) case AUTH_MSG_DIE: break; } - return tvb_length(tvb); + return TRUE; } void |