aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2002-08-14 00:48:02 +0000
committerDr. Stephen Henson <steve@openssl.org>2002-08-14 00:48:02 +0000
commit2af52de7b5c414bf73302a2495c21dcb2db3b90c (patch)
tree06deed8e2ed7d19550ce6eddb12187d9bff312fd /crypto
parent629d860cbc2420826a13e1f874cadee3e761c406 (diff)
downloadopenssl-2af52de7b5c414bf73302a2495c21dcb2db3b90c.zip
openssl-2af52de7b5c414bf73302a2495c21dcb2db3b90c.tar.gz
openssl-2af52de7b5c414bf73302a2495c21dcb2db3b90c.tar.bz2
Fix typo in OBJ_txt2obj which incorrectly passed the content
length, instead of the encoding length to d2i_ASN1_OBJECT. This wasn't visible before becuse ASN1_get_object() used to read past the length of the supplied buffer.
Diffstat (limited to 'crypto')
-rw-r--r--crypto/objects/obj_dat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/objects/obj_dat.c b/crypto/objects/obj_dat.c
index 02c3719..ce779dc 100644
--- a/crypto/objects/obj_dat.c
+++ b/crypto/objects/obj_dat.c
@@ -425,7 +425,7 @@ ASN1_OBJECT *OBJ_txt2obj(const char *s, int no_name)
a2d_ASN1_OBJECT(p,i,s,-1);
p=buf;
- op=d2i_ASN1_OBJECT(NULL,&p,i);
+ op=d2i_ASN1_OBJECT(NULL,&p,j);
OPENSSL_free(buf);
return op;
}