summaryrefslogtreecommitdiffstats
path: root/crypto/objects
diff options
context:
space:
mode:
authorBen Laurie <ben@links.org>2016-05-18 17:20:07 +0100
committerViktor Dukhovni <openssl-users@dukhovni.org>2016-05-19 03:22:16 -0400
commite64b5557814e2c9eb1aca111936cb8ac151dfceb (patch)
tree32dba293f9772e9e9d55812479ebac75cb890d1b /crypto/objects
parentf75b34c8c81d7277fa002120d4c8dc36c39d1ff5 (diff)
ok was uninitialised on failure.
Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Andy Polyakov <appro@openssl.org>
Diffstat (limited to 'crypto/objects')
-rw-r--r--crypto/objects/obj_dat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/objects/obj_dat.c b/crypto/objects/obj_dat.c
index 820c275fd0..3b836fe6a5 100644
--- a/crypto/objects/obj_dat.c
+++ b/crypto/objects/obj_dat.c
@@ -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) {