aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/asn1/ber_dec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/asn1/ber_dec.cpp')
-rw-r--r--src/lib/asn1/ber_dec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/asn1/ber_dec.cpp b/src/lib/asn1/ber_dec.cpp
index 81b2e34f6..c74377389 100644
--- a/src/lib/asn1/ber_dec.cpp
+++ b/src/lib/asn1/ber_dec.cpp
@@ -127,7 +127,7 @@ size_t find_eoc(DataSource* ber)
length += item_size + length_size + tag_size;
- if(type_tag == EOC)
+ if(type_tag == EOC && class_tag == UNIVERSAL)
break;
}
return length;