summaryrefslogtreecommitdiff
path: root/ext/openssl/ossl_asn1.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/openssl/ossl_asn1.c')
-rw-r--r--ext/openssl/ossl_asn1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl_asn1.c b/ext/openssl/ossl_asn1.c
index 7fb9121558..b67decc5f3 100644
--- a/ext/openssl/ossl_asn1.c
+++ b/ext/openssl/ossl_asn1.c
@@ -764,8 +764,8 @@ ossl_asn1_decode0(unsigned char **pp, long length, long *offset, long depth,
tag_class = sUNIVERSAL;
if(j & V_ASN1_CONSTRUCTED){
if((j == 0x21) && (len == 0)){
- infinite = 1;
long lastoff = off;
+ infinite = 1;
value = ossl_asn1_decode0(&p, length, &off, depth+1, 0, yield);
len = off - lastoff;
}