diff options
author | Isaac Boukris <iboukris@gmail.com> | 2021-05-16 21:11:46 +0300 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-06-08 17:36:44 +0000 |
commit | 2764f53e20398b68b4e074659d79ecde8b108190 (patch) | |
tree | 865a68788dc3ecf0e6641040c763c003e0ddc8cc /epan/dissectors | |
parent | 9147201351d591aa1f12d8fcbe319c117d0c5801 (diff) |
credssp: fix dissect_credssp_heur() with modern clients (using version 6)
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/asn1/credssp/packet-credssp-template.c | 2 | ||||
-rw-r--r-- | epan/dissectors/packet-credssp.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/asn1/credssp/packet-credssp-template.c b/epan/dissectors/asn1/credssp/packet-credssp-template.c index 450a07a1f8..2ce81ef4b5 100644 --- a/epan/dissectors/asn1/credssp/packet-credssp-template.c +++ b/epan/dissectors/asn1/credssp/packet-credssp-template.c @@ -92,7 +92,7 @@ dissect_credssp_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, if((ber_class == BER_CLASS_UNI) && (tag == BER_UNI_TAG_INTEGER)) { offset = get_ber_length(tvb, offset, &length, NULL); ver = tvb_get_guint8(tvb, offset); - if((length == 1) && ((ver == 2) || (ver == 3))) { + if((length == 1) && (ver > 1) && (ver < 99)) { if (have_tap_listener(exported_pdu_tap)) { exp_pdu_data_t *exp_pdu_data = export_pdu_create_common_tags(pinfo, "credssp", EXP_PDU_TAG_PROTO_NAME); diff --git a/epan/dissectors/packet-credssp.c b/epan/dissectors/packet-credssp.c index d0c1398bce..11f5961e7f 100644 --- a/epan/dissectors/packet-credssp.c +++ b/epan/dissectors/packet-credssp.c @@ -367,7 +367,7 @@ dissect_credssp_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, if((ber_class == BER_CLASS_UNI) && (tag == BER_UNI_TAG_INTEGER)) { offset = get_ber_length(tvb, offset, &length, NULL); ver = tvb_get_guint8(tvb, offset); - if((length == 1) && ((ver == 2) || (ver == 3))) { + if((length == 1) && (ver > 1) && (ver < 99)) { if (have_tap_listener(exported_pdu_tap)) { exp_pdu_data_t *exp_pdu_data = export_pdu_create_common_tags(pinfo, "credssp", EXP_PDU_TAG_PROTO_NAME); |