diff options
-rw-r--r-- | epan/dissectors/packet-smb2.c | 4 | ||||
-rw-r--r-- | epan/dissectors/packet-smb2.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-smb2.c b/epan/dissectors/packet-smb2.c index 909cf51fe6..3b9dbf82c7 100644 --- a/epan/dissectors/packet-smb2.c +++ b/epan/dissectors/packet-smb2.c @@ -3107,7 +3107,7 @@ dissect_smb2_tree_connect_request(tvbuff_t *tvb, packet_info *pinfo, proto_tree static int dissect_smb2_tree_connect_response(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, smb2_info_t *si _U_) { - guint16 share_type; + guint8 share_type; gboolean continue_dissection; switch (si->status) { @@ -3118,7 +3118,7 @@ dissect_smb2_tree_connect_response(tvbuff_t *tvb, packet_info *pinfo, proto_tree } /* share type */ - share_type = tvb_get_letohs(tvb, offset); + share_type = tvb_get_guint8(tvb, offset); proto_tree_add_item(tree, hf_smb2_share_type, tvb, offset, 1, ENC_LITTLE_ENDIAN); offset += 1; diff --git a/epan/dissectors/packet-smb2.h b/epan/dissectors/packet-smb2.h index 6c2167dbe4..850b9414b4 100644 --- a/epan/dissectors/packet-smb2.h +++ b/epan/dissectors/packet-smb2.h @@ -81,7 +81,7 @@ typedef struct _smb2_saved_info_t { typedef struct _smb2_tid_info_t { guint32 tid; guint32 connect_frame; - guint16 share_type; + guint8 share_type; char *name; } smb2_tid_info_t; |