summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/ec/ec_asn1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/ec/ec_asn1.c b/src/lib/libcrypto/ec/ec_asn1.c
index 865934ccf0..5a38063d9f 100644
--- a/src/lib/libcrypto/ec/ec_asn1.c
+++ b/src/lib/libcrypto/ec/ec_asn1.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_asn1.c,v 1.68 2024/10/11 18:58:04 tb Exp $ */ 1/* $OpenBSD: ec_asn1.c,v 1.69 2024/10/14 12:38:11 tb Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project. 3 * Written by Nils Larsch for the OpenSSL project.
4 */ 4 */
@@ -609,7 +609,7 @@ ec_asn1_group2curve(const EC_GROUP *group, X9_62_CURVE *curve)
609 *b_buf = NULL; 609 *b_buf = NULL;
610 size_t len_1, len_2; 610 size_t len_1, len_2;
611 unsigned char char_zero = 0; 611 unsigned char char_zero = 0;
612 int ok = 0; 612 int ret = 0;
613 613
614 if (!group || !curve || !curve->a || !curve->b) 614 if (!group || !curve || !curve->a || !curve->b)
615 return 0; 615 return 0;
@@ -686,7 +686,7 @@ ec_asn1_group2curve(const EC_GROUP *group, X9_62_CURVE *curve)
686 } 686 }
687 } 687 }
688 688
689 ok = 1; 689 ret = 1;
690 690
691 err: 691 err:
692 free(buffer_1); 692 free(buffer_1);
@@ -694,7 +694,7 @@ ec_asn1_group2curve(const EC_GROUP *group, X9_62_CURVE *curve)
694 BN_free(a); 694 BN_free(a);
695 BN_free(b); 695 BN_free(b);
696 696
697 return (ok); 697 return ret;
698} 698}
699 699
700static ECPARAMETERS * 700static ECPARAMETERS *