From 9f6a3801d95a33488c6fc81dd345489c50cdab1d Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Tue, 19 Jul 2005 08:58:20 +0000 Subject: minor fix to add required alignment for AueryPathInfo level 0x107 it decodes "better" but might still be broken since none of the packets I have match any of the "standards" svn path=/trunk/; revision=14952 --- epan/dissectors/packet-smb.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'epan') diff --git a/epan/dissectors/packet-smb.c b/epan/dissectors/packet-smb.c index efdf5ae7e6..988d743493 100644 --- a/epan/dissectors/packet-smb.c +++ b/epan/dissectors/packet-smb.c @@ -10438,11 +10438,18 @@ dissect_4_2_16_8(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, if (*trunc) { return offset; } + + /* 4 pad bytes */ + offset+=4; + offset = dissect_4_2_16_5(tvb, pinfo, tree, offset, bcp, trunc); if (*trunc) { return offset; } + /* 2 pad bytes */ + offset+=2; + /* index number */ CHECK_BYTE_COUNT_SUBR(8); proto_tree_add_item(tree, hf_smb_index_number, tvb, offset, 8, TRUE); @@ -10477,7 +10484,7 @@ dissect_4_2_16_8(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, proto_tree_add_item(tree, hf_smb_t2_alignment, tvb, offset, 4, TRUE); COUNT_BYTES_SUBR(4); - offset = dissect_4_2_16_6(tvb, pinfo, tree, offset, bcp, trunc); + offset = dissect_4_2_16_7(tvb, pinfo, tree, offset, bcp, trunc); return offset; } -- cgit v1.2.3