From: Richard Levitte Date: Mon, 11 Nov 2002 21:34:37 +0000 (+0000) Subject: Variables on the stack must be initialized or we can't depend on any X-Git-Tag: OpenSSL_0_9_6h~52 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3baca7eedd75bcca2b1b3a1729e2db7b0840cbe6;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 11c4e5f03f..f9253452a7 100644 --- a/apps/req.c +++ b/apps/req.c @@ -422,7 +422,7 @@ bad: if (template != NULL) { - long errline; + long errline = -1; BIO_printf(bio_err,"Using configuration from %s\n",template); req_conf=CONF_load(NULL,template,&errline); diff --git a/apps/x509.c b/apps/x509.c index 5b3ef9584d..7dfbfbfee9 100644 --- a/apps/x509.c +++ b/apps/x509.c @@ -447,7 +447,7 @@ bad: if (extfile) { - long errorline; + long errorline = -1; X509V3_CTX ctx2; if (!(extconf=CONF_load(NULL,extfile,&errorline))) {