mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
ok was uninitialised on failure.
Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Andy Polyakov <appro@openssl.org>
This commit is contained in:
parent
f75b34c8c8
commit
e64b555781
@ -680,7 +680,7 @@ int OBJ_create_objects(BIO *in)
|
||||
int OBJ_create(const char *oid, const char *sn, const char *ln)
|
||||
{
|
||||
ASN1_OBJECT *tmpoid = NULL;
|
||||
int ok;
|
||||
int ok = 0;
|
||||
|
||||
/* Check to see if short or long name already present */
|
||||
if (OBJ_sn2nid(sn) != NID_undef || OBJ_ln2nid(ln) != NID_undef) {
|
||||
|
Loading…
Reference in New Issue
Block a user