From: Richard Levitte Date: Mon, 11 Nov 2002 21:34:21 +0000 (+0000) Subject: Variables on the stack must be initialized or we can't depend on any X-Git-Tag: OpenSSL_0_9_7-beta4~18^2~64 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=06b7c8d5baa8be9300b5a038f4d967c06a3a73f9;p=oweals%2Fopenssl.git Variables on the stack must be initialized or we can't depend on any initial value. For errline/errorline, we did depend on that, erroneously --- diff --git a/apps/req.c b/apps/req.c index 729cb2d5bd..6beeef07a3 100644 --- a/apps/req.c +++ b/apps/req.c @@ -542,7 +542,7 @@ bad: if (template != NULL) { - long errline; + long errline = -1; if( verbose ) BIO_printf(bio_err,"Using configuration from %s\n",template); diff --git a/apps/x509.c b/apps/x509.c index 12b269f9ab..8e4462dae7 100644 --- a/apps/x509.c +++ b/apps/x509.c @@ -479,7 +479,7 @@ bad: if (extfile) { - long errorline; + long errorline = -1; X509V3_CTX ctx2; extconf = NCONF_new(NULL); if (!NCONF_load(extconf, extfile,&errorline))