Loading crypto/evp/p_lib.c +1 −1 Original line number Diff line number Diff line Loading @@ -261,7 +261,7 @@ int EVP_PKEY_set_type_str(EVP_PKEY *pkey, const char *str, int len) int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key) { if (!EVP_PKEY_set_type(pkey, type)) if (pkey == NULL || !EVP_PKEY_set_type(pkey, type)) return 0; pkey->pkey.ptr = key; return (key != NULL); Loading crypto/evp/pmeth_gn.c +7 −2 Original line number Diff line number Diff line Loading @@ -96,12 +96,17 @@ int EVP_PKEY_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey) return -1; } if (!ppkey) if (ppkey == NULL) return -1; if (!*ppkey) if (*ppkey == NULL) *ppkey = EVP_PKEY_new(); if (*ppkey == NULL) { EVPerr(EVP_F_EVP_PKEY_PARAMGEN, ERR_R_MALLOC_FAILURE); return -1; } ret = ctx->pmeth->paramgen(ctx, *ppkey); if (ret <= 0) { EVP_PKEY_free(*ppkey); Loading Loading
crypto/evp/p_lib.c +1 −1 Original line number Diff line number Diff line Loading @@ -261,7 +261,7 @@ int EVP_PKEY_set_type_str(EVP_PKEY *pkey, const char *str, int len) int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key) { if (!EVP_PKEY_set_type(pkey, type)) if (pkey == NULL || !EVP_PKEY_set_type(pkey, type)) return 0; pkey->pkey.ptr = key; return (key != NULL); Loading
crypto/evp/pmeth_gn.c +7 −2 Original line number Diff line number Diff line Loading @@ -96,12 +96,17 @@ int EVP_PKEY_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey) return -1; } if (!ppkey) if (ppkey == NULL) return -1; if (!*ppkey) if (*ppkey == NULL) *ppkey = EVP_PKEY_new(); if (*ppkey == NULL) { EVPerr(EVP_F_EVP_PKEY_PARAMGEN, ERR_R_MALLOC_FAILURE); return -1; } ret = ctx->pmeth->paramgen(ctx, *ppkey); if (ret <= 0) { EVP_PKEY_free(*ppkey); Loading