diff options
Diffstat (limited to 'lib/libcrypto/ec/ec_asn1.c')
-rw-r--r-- | lib/libcrypto/ec/ec_asn1.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libcrypto/ec/ec_asn1.c b/lib/libcrypto/ec/ec_asn1.c index 2409cd0886c..342db2a992a 100644 --- a/lib/libcrypto/ec/ec_asn1.c +++ b/lib/libcrypto/ec/ec_asn1.c @@ -805,8 +805,7 @@ ec_asn1_parameters2group(const ECPARAMETERS * params) } /* extract seed (optional) */ if (params->curve->seed != NULL) { - if (ret->seed != NULL) - free(ret->seed); + free(ret->seed); if (!(ret->seed = malloc(params->curve->seed->length))) { ECerr(EC_F_EC_ASN1_PARAMETERS2GROUP, ERR_R_MALLOC_FAILURE); |