fix error found by coverity: check if ctx is != NULL before calling BN_CTX_end()
fix error found by coverity: check if ctx is != NULL before calling BN_CTX_end()

openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl