From 79a11fa0d635a56dff7b2359962e7c164fded166 Mon Sep 17 00:00:00 2001 From: Alexander K Date: Fri, 16 Aug 2019 16:10:34 +0300 Subject: [PATCH] Explicitly nullify grp->id instead of freeing. --- library/ecp_curves.c | 1 + 1 file changed, 1 insertion(+) diff --git a/library/ecp_curves.c b/library/ecp_curves.c index 4335f2d60..400f208a0 100644 --- a/library/ecp_curves.c +++ b/library/ecp_curves.c @@ -836,6 +836,7 @@ int mbedtls_ecp_group_load( mbedtls_ecp_group *grp, mbedtls_ecp_group_id id ) #endif /* MBEDTLS_ECP_DP_CURVE448_ENABLED */ default: + grp->id = id; return( MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE ); } }