aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-07-19 08:58:20 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-07-19 08:58:20 +0000
commit9f6a3801d95a33488c6fc81dd345489c50cdab1d (patch)
tree75aa8e267d3e567c711d72715c64fb248adac431 /epan
parentaa6a15ebdeb0a6e086230fcef65018a197dbb827 (diff)
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
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-smb.c9
1 files changed, 8 insertions, 1 deletions
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;
}