common: check for nil in fips cleanup

This commit is contained in:
Jay Sorg 2014-02-23 12:27:41 -08:00
parent 8e4520b3c3
commit 2921400083

View File

@ -199,7 +199,10 @@ ssl_des3_info_delete(void *des3)
EVP_CIPHER_CTX *des3_ctx;
des3_ctx = (EVP_CIPHER_CTX *) des3;
EVP_CIPHER_CTX_cleanup(des3_ctx);
if (des3_ctx != 0)
{
EVP_CIPHER_CTX_cleanup(des3_ctx);
}
}
/*****************************************************************************/