aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Levitte <[email protected]>2002-04-12 00:13:58 +0200
committerRichard Levitte <[email protected]>2002-04-12 00:13:58 +0200
commit083100e2abe0f7b6cef91a4a5e267037af4e1904 (patch)
tree57a4be625421333682d5437a5b0bc1feefda65bd
parentChange the date to XX xxx XXXX in development versions. (diff)
downloadopenssl-083100e2abe0f7b6cef91a4a5e267037af4e1904.tar.gz
openssl-083100e2abe0f7b6cef91a4a5e267037af4e1904.zip
Check error code from a2d_ASN1_OBJECT().
-rw-r--r--crypto/objects/obj_dat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/objects/obj_dat.c b/crypto/objects/obj_dat.c
index 8094c7df95f..cf21ea33777 100644
--- a/crypto/objects/obj_dat.c
+++ b/crypto/objects/obj_dat.c
@@ -654,6 +654,8 @@ int OBJ_create(const char *oid, const char *sn, const char *ln)
return(0);
}
i=a2d_ASN1_OBJECT(buf,i,oid,-1);
+ if (i == 0)
+ goto err;
op=(ASN1_OBJECT *)ASN1_OBJECT_create(OBJ_new_nid(1),buf,i,sn,ln);
if (op == NULL)
goto err;