aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/credssp/packet-credssp-template.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2014-08-10 10:43:33 +0200
committerPascal Quantin <pascal.quantin@gmail.com>2014-08-10 08:45:53 +0000
commit6034a6005dd7cf778a459fdfeaffb1525dfea1a7 (patch)
treedfab3edb554fb3849995977124678becd7b5f0a7 /asn1/credssp/packet-credssp-template.c
parentd2396d2f580cb513896c6ecb5f5d7bd8d2c4f759 (diff)
CredSSP: update ASN.1 source file with the change done in gd2396d2
Change-Id: I87d0f212f485b9e28fa00101eec9e3c07bc57c67 Reviewed-on: https://code.wireshark.org/review/3528 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'asn1/credssp/packet-credssp-template.c')
-rw-r--r--asn1/credssp/packet-credssp-template.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/asn1/credssp/packet-credssp-template.c b/asn1/credssp/packet-credssp-template.c
index 578cdfddbb..7649d8307a 100644
--- a/asn1/credssp/packet-credssp-template.c
+++ b/asn1/credssp/packet-credssp-template.c
@@ -89,6 +89,7 @@ dissect_credssp_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree,
gboolean pc;
gint32 tag;
guint32 length;
+ gint8 ver;
asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
@@ -103,7 +104,8 @@ dissect_credssp_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree,
offset = get_ber_identifier(tvb, offset, &ber_class, &pc, &tag);
if((ber_class == BER_CLASS_UNI) && (tag == BER_UNI_TAG_INTEGER)) {
offset = get_ber_length(tvb, offset, &length, NULL);
- if((length == 1) && (tvb_get_guint8(tvb, offset) == 2)) {
+ ver = tvb_get_guint8(tvb, offset);
+ if((length == 1) && ((ver == 2) || (ver == 3))) {
if (have_tap_listener(exported_pdu_tap)) {
exp_pdu_data_t *exp_pdu_data;
guint8 tags_bit_field;