diff options
author | Richard Levitte <levitte@openssl.org> | 2002-04-11 22:14:51 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-04-11 22:14:51 +0000 |
commit | 1171f28f9747be02c01cf8e6515f7d2f8f7a3629 (patch) | |
tree | ad0f78a5dd70595cad7dd774c1944a4371aca1c8 /crypto | |
parent | 5c04e562850fa56fcef35807495c967d1d5cccb4 (diff) |
Check error code from a2d_ASN1_OBJECT().
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/objects/obj_dat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/objects/obj_dat.c b/crypto/objects/obj_dat.c index 4b1bb9583a..4d82378b9d 100644 --- a/crypto/objects/obj_dat.c +++ b/crypto/objects/obj_dat.c @@ -645,6 +645,8 @@ int OBJ_create(char *oid, char *sn, 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; |