diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2000-03-09 01:03:44 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2000-03-09 01:03:44 +0000 |
commit | e743a5134ec788ddfc457210afacb6820161248c (patch) | |
tree | 71410627074930ef30f2a5e2c30af7a368a0a39e /apps/req.c | |
parent | 97853bd5c1f0e82bfe1eeaf0b57fbe4f98488f2c (diff) |
Don't Free() password if it was read from config file.
Diffstat (limited to 'apps/req.c')
-rw-r--r-- | apps/req.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |