From: Dr. Stephen Henson Date: Thu, 9 Mar 2000 01:03:44 +0000 (+0000) Subject: Don't Free() password if it was read from config file. X-Git-Tag: OpenSSL_0_9_5a-beta1~80 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e743a5134ec788ddfc457210afacb6820161248c;p=openssl Don't Free() password if it was read from config file. --- diff --git a/apps/req.c b/apps/req.c index 97bb0d0ed8..eb338eeb1b 100644 --- a/apps/req.c +++ b/apps/req.c @@ -878,8 +878,8 @@ end: EVP_PKEY_free(pkey); X509_REQ_free(req); X509_free(x509ss); - if(passin) Free(passin); - if(passout) Free(passout); + if(passargin && passin) Free(passin); + if(passargout && passout) Free(passout); OBJ_cleanup(); #ifndef NO_DSA if (dsa_params != NULL) DSA_free(dsa_params);