diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2023-05-01 17:53:02 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2023-05-01 17:53:02 +0000 |
commit | 8a67fd1b222aca8c3bf5500a999e772ace62c8a6 (patch) | |
tree | 11e2da87a7788a3a7666ef77eadaa3805581ae44 | |
parent | 688ef33dba2c1a0a655a8de4e68c9021239eb43d (diff) |
Add a missing pair of braces.
-rw-r--r-- | lib/libcrypto/ec/ec_curve.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libcrypto/ec/ec_curve.c b/lib/libcrypto/ec/ec_curve.c index 9c9aeb55746..9ab8c88f5ed 100644 --- a/lib/libcrypto/ec/ec_curve.c +++ b/lib/libcrypto/ec/ec_curve.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ec_curve.c,v 1.38 2023/05/01 17:49:33 tb Exp $ */ +/* $OpenBSD: ec_curve.c,v 1.39 2023/05/01 17:53:01 tb Exp $ */ /* * Written by Nils Larsch for the OpenSSL project. */ @@ -3114,11 +3114,12 @@ EC_GROUP_new_by_curve_name(int nid) if (nid <= 0) return NULL; - for (i = 0; i < CURVE_LIST_LENGTH; i++) + for (i = 0; i < CURVE_LIST_LENGTH; i++) { if (curve_list[i].nid == nid) { ret = ec_group_new_from_data(&curve_list[i]); break; } + } if (ret == NULL) { ECerror(EC_R_UNKNOWN_GROUP); return NULL; |