commit | 79a11fa0d635a56dff7b2359962e7c164fded166 | [log] [tgz] |
---|---|---|
author | Alexander K <ak@tempesta-tech.com> | Fri Aug 16 16:10:34 2019 +0300 |
committer | Alexander K <ak@tempesta-tech.com> | Fri Aug 16 16:10:34 2019 +0300 |
tree | e6bf95b87b03904f075acef84ed116eaa4b8c75f | |
parent | 1f5e6abfb93a2d49552aed373e6265b01e627d5b [diff] |
Explicitly nullify grp->id instead of freeing.
diff --git a/library/ecp_curves.c b/library/ecp_curves.c index 4335f2d..400f208 100644 --- a/library/ecp_curves.c +++ b/library/ecp_curves.c
@@ -836,6 +836,7 @@ #endif /* MBEDTLS_ECP_DP_CURVE448_ENABLED */ default: + grp->id = id; return( MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE ); } }