mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
Check error code from a2d_ASN1_OBJECT().
This commit is contained in:
parent
241d2ba1da
commit
083100e2ab
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user