From b25cfdba754a695c5817acc5082b1677e90c7fac Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 20 Mar 2002 07:55:51 +0000 Subject: When dissecting an SID with more than 4 authorities, increment the offset to go past the last authority (the RID). svn path=/trunk/; revision=4991 --- packet-smb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packet-smb.c') diff --git a/packet-smb.c b/packet-smb.c index 6a64536ced..18683df347 100644 --- a/packet-smb.c +++ b/packet-smb.c @@ -3,7 +3,7 @@ * Copyright 1999, Richard Sharpe * 2001 Rewrite by Ronnie Sahlberg and Guy Harris * - * $Id: packet-smb.c,v 1.233 2002/03/20 06:51:14 guy Exp $ + * $Id: packet-smb.c,v 1.234 2002/03/20 07:55:51 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -6644,6 +6644,7 @@ dissect_nt_sid(tvbuff_t *tvb, packet_info *pinfo, int offset, proto_tree *parent rid = tvb_get_letohl(tvb, offset); proto_tree_add_text(tree, tvb, offset, 4, "RID: %u", rid); proto_item_append_text(item, ": S-1-%u-%s-%u", auth, gstr->str, rid); + offset+=4; } else { proto_item_append_text(item, ": S-1-%u-%s", auth, gstr->str); -- cgit v1.2.3