Browse Source

ok was uninitialised on failure.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Andy Polyakov <appro@openssl.org>
master
Ben Laurie 6 years ago
committed by Viktor Dukhovni
parent
commit
e64b555781
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      crypto/objects/obj_dat.c

+ 1
- 1
crypto/objects/obj_dat.c View File

@ -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…
Cancel
Save