diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/ec/ec_ameth.c | 3 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/ec/ec_ameth.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ec/ec_ameth.c b/src/lib/libcrypto/ec/ec_ameth.c index c201815621..6b4dfdec46 100644 --- a/src/lib/libcrypto/ec/ec_ameth.c +++ b/src/lib/libcrypto/ec/ec_ameth.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec_ameth.c,v 1.12 2014/07/12 16:03:37 miod Exp $ */ | 1 | /* $OpenBSD: ec_ameth.c,v 1.13 2014/07/13 15:47:51 logan Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2006. | 3 | * project 2006. |
4 | */ | 4 | */ |
@@ -373,6 +373,7 @@ ec_bits(const EVP_PKEY * pkey) | |||
373 | } | 373 | } |
374 | group = EC_KEY_get0_group(pkey->pkey.ec); | 374 | group = EC_KEY_get0_group(pkey->pkey.ec); |
375 | if (!EC_GROUP_get_order(group, order, NULL)) { | 375 | if (!EC_GROUP_get_order(group, order, NULL)) { |
376 | BN_free(order); | ||
376 | ERR_clear_error(); | 377 | ERR_clear_error(); |
377 | return 0; | 378 | return 0; |
378 | } | 379 | } |
diff --git a/src/lib/libssl/src/crypto/ec/ec_ameth.c b/src/lib/libssl/src/crypto/ec/ec_ameth.c index c201815621..6b4dfdec46 100644 --- a/src/lib/libssl/src/crypto/ec/ec_ameth.c +++ b/src/lib/libssl/src/crypto/ec/ec_ameth.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec_ameth.c,v 1.12 2014/07/12 16:03:37 miod Exp $ */ | 1 | /* $OpenBSD: ec_ameth.c,v 1.13 2014/07/13 15:47:51 logan Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2006. | 3 | * project 2006. |
4 | */ | 4 | */ |
@@ -373,6 +373,7 @@ ec_bits(const EVP_PKEY * pkey) | |||
373 | } | 373 | } |
374 | group = EC_KEY_get0_group(pkey->pkey.ec); | 374 | group = EC_KEY_get0_group(pkey->pkey.ec); |
375 | if (!EC_GROUP_get_order(group, order, NULL)) { | 375 | if (!EC_GROUP_get_order(group, order, NULL)) { |
376 | BN_free(order); | ||
376 | ERR_clear_error(); | 377 | ERR_clear_error(); |
377 | return 0; | 378 | return 0; |
378 | } | 379 | } |