Don't Free() password if it was read from config file.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 9 Mar 2000 01:03:44 +0000 (01:03 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 9 Mar 2000 01:03:44 +0000 (01:03 +0000)
apps/req.c

index 97bb0d0ed8760f58e0680849391c06ab5ca66433..eb338eeb1b2b2dd42c244132b40bfd4476353266 100644 (file)
@@ -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);