From 11f72f73b8998da38147cfe0f097d34125a4cb5d Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 22 Mar 2001 00:50:44 +0000 Subject: [PATCH] When constructing the tree for a LANMAN transaction continuation, use the parameter offset, not the data offset, as the starting offset. svn path=/trunk/; revision=3155 --- packet-smb-pipe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packet-smb-pipe.c b/packet-smb-pipe.c index ddf1a712f4..34bea5a49c 100644 --- a/packet-smb-pipe.c +++ b/packet-smb-pipe.c @@ -2,7 +2,7 @@ * Routines for SMB named pipe packet dissection * Copyright 1999, Richard Sharpe * - * $Id: packet-smb-pipe.c,v 1.20 2001/03/22 00:28:35 guy Exp $ + * $Id: packet-smb-pipe.c,v 1.21 2001/03/22 00:50:44 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -803,11 +803,11 @@ dissect_pipe_lanman(const u_char *pd, int offset, frame_data *fd, if (tree) { - ti = proto_tree_add_item(parent, proto_smb_lanman, NullTVB, SMB_offset + DataOffset, END_OF_FRAME, FALSE); + ti = proto_tree_add_item(parent, proto_smb_lanman, NullTVB, loc_offset, END_OF_FRAME, FALSE); lanman_tree = proto_item_add_subtree(ti, ett_lanman); - proto_tree_add_text(lanman_tree, NullTVB, loc_offset, END_OF_FRAME, "Payload: %s", format_text(pd + SMB_offset + DataOffset, END_OF_FRAME)); + proto_tree_add_text(lanman_tree, NullTVB, loc_offset, END_OF_FRAME, "Payload: %s", format_text(pd + loc_offset, END_OF_FRAME)); }