diff options
Diffstat (limited to 'src/lib/libcrypto/ec/ec2_smpl.c')
| -rw-r--r-- | src/lib/libcrypto/ec/ec2_smpl.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/lib/libcrypto/ec/ec2_smpl.c b/src/lib/libcrypto/ec/ec2_smpl.c index 001ffcc077..0031a161c7 100644 --- a/src/lib/libcrypto/ec/ec2_smpl.c +++ b/src/lib/libcrypto/ec/ec2_smpl.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ec2_smpl.c,v 1.11 2014/07/10 22:45:56 jsing Exp $ */ | 1 | /* $OpenBSD: ec2_smpl.c,v 1.12 2014/07/12 16:03:37 miod Exp $ */ |
| 2 | /* ==================================================================== | 2 | /* ==================================================================== |
| 3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. | 3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. |
| 4 | * | 4 | * |
| @@ -310,8 +310,7 @@ ec_GF2m_simple_group_check_discriminant(const EC_GROUP * group, BN_CTX * ctx) | |||
| 310 | err: | 310 | err: |
| 311 | if (ctx != NULL) | 311 | if (ctx != NULL) |
| 312 | BN_CTX_end(ctx); | 312 | BN_CTX_end(ctx); |
| 313 | if (new_ctx != NULL) | 313 | BN_CTX_free(new_ctx); |
| 314 | BN_CTX_free(new_ctx); | ||
| 315 | return ret; | 314 | return ret; |
| 316 | } | 315 | } |
| 317 | 316 | ||
| @@ -547,8 +546,7 @@ ec_GF2m_simple_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, | |||
| 547 | 546 | ||
| 548 | err: | 547 | err: |
| 549 | BN_CTX_end(ctx); | 548 | BN_CTX_end(ctx); |
| 550 | if (new_ctx != NULL) | 549 | BN_CTX_free(new_ctx); |
| 551 | BN_CTX_free(new_ctx); | ||
| 552 | return ret; | 550 | return ret; |
| 553 | } | 551 | } |
| 554 | 552 | ||
| @@ -641,8 +639,7 @@ ec_GF2m_simple_is_on_curve(const EC_GROUP *group, const EC_POINT *point, BN_CTX | |||
| 641 | err: | 639 | err: |
| 642 | if (ctx) | 640 | if (ctx) |
| 643 | BN_CTX_end(ctx); | 641 | BN_CTX_end(ctx); |
| 644 | if (new_ctx) | 642 | BN_CTX_free(new_ctx); |
| 645 | BN_CTX_free(new_ctx); | ||
| 646 | return ret; | 643 | return ret; |
| 647 | } | 644 | } |
| 648 | 645 | ||
| @@ -691,8 +688,7 @@ ec_GF2m_simple_cmp(const EC_GROUP * group, const EC_POINT * a, const EC_POINT * | |||
| 691 | err: | 688 | err: |
| 692 | if (ctx) | 689 | if (ctx) |
| 693 | BN_CTX_end(ctx); | 690 | BN_CTX_end(ctx); |
| 694 | if (new_ctx) | 691 | BN_CTX_free(new_ctx); |
| 695 | BN_CTX_free(new_ctx); | ||
| 696 | return ret; | 692 | return ret; |
| 697 | } | 693 | } |
| 698 | 694 | ||
| @@ -733,8 +729,7 @@ ec_GF2m_simple_make_affine(const EC_GROUP * group, EC_POINT * point, BN_CTX * ct | |||
| 733 | err: | 729 | err: |
| 734 | if (ctx) | 730 | if (ctx) |
| 735 | BN_CTX_end(ctx); | 731 | BN_CTX_end(ctx); |
| 736 | if (new_ctx) | 732 | BN_CTX_free(new_ctx); |
| 737 | BN_CTX_free(new_ctx); | ||
| 738 | return ret; | 733 | return ret; |
| 739 | } | 734 | } |
| 740 | 735 | ||
