Fix coverity CID - Dereference after NULL check in fromdata_init()
@@ -375,6 +375,7 @@ static int fromdata_init(EVP_PKEY_CTX *ctx, int operation)
return 1;
not_supported:
+ if (ctx != NULL)
ctx->operation = EVP_PKEY_OP_UNDEFINED;
ERR_raise(ERR_LIB_EVP, EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE);
return -2;
