aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-smb2.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2016-12-02 11:57:43 -0500
committerMichael Mann <mmann78@netscape.net>2016-12-02 19:41:40 +0000
commit2ec9093ed8a21737bfad150bc9daa6b3a6bb103b (patch)
tree29b77f573cbb580c63654d4706a63a4d251253e8 /epan/dissectors/packet-smb2.c
parentd2e2d7c1a820fd6612f54ed4bccd1671a720c2a4 (diff)
Make SMB2 MessageId field a FT_UINT64
Also adjust the smb2_info_t structure that handles the value. Bug: 12915 Change-Id: Ia314b8dc840b9d26d2c1d185f06ef93f242a3a7b Reviewed-on: https://code.wireshark.org/review/19019 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-smb2.c')
-rw-r--r--epan/dissectors/packet-smb2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-smb2.c b/epan/dissectors/packet-smb2.c
index 7c92ecb3ac..267887857c 100644
--- a/epan/dissectors/packet-smb2.c
+++ b/epan/dissectors/packet-smb2.c
@@ -8763,7 +8763,7 @@ dissect_smb2(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, gboolea
si->msg_id = tvb_get_letoh64(tvb, offset);
ssi_key.msg_id = si->msg_id;
msg_id_item = proto_tree_add_item(header_tree, hf_smb2_msg_id, tvb, offset, 8, ENC_LITTLE_ENDIAN);
- if (msg_id_item && (si->msg_id == -1)) {
+ if (msg_id_item && (si->msg_id == G_GUINT64_CONSTANT(0xFFFFFFFFFFFFFFFF))) {
proto_item_append_text(msg_id_item, " (unsolicited response)");
}
offset += 8;
@@ -8985,7 +8985,7 @@ proto_register_smb2(void)
},
{ &hf_smb2_msg_id,
- { "Message ID", "smb2.msg_id", FT_INT64, BASE_DEC,
+ { "Message ID", "smb2.msg_id", FT_UINT64, BASE_DEC,
NULL, 0, "SMB2 Message ID", HFILL }
},