From: Ben Laurie Date: Wed, 18 May 2016 16:20:07 +0000 (+0100) Subject: ok was uninitialised on failure. X-Git-Tag: OpenSSL_1_1_0-pre6~770 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e64b5557814e2c9eb1aca111936cb8ac151dfceb;p=oweals%2Fopenssl.git ok was uninitialised on failure. Reviewed-by: Rich Salz Reviewed-by: Andy Polyakov --- 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) {