From: slontis Date: Fri, 28 Mar 2025 07:57:48 +0000 (+1100) Subject: Fix c++ comment in ec code. X-Git-Tag: openssl-3.4.2~119 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b28f193c68fe343a091de14d2ee39bacf723f1bd;p=thirdparty%2Fopenssl.git Fix c++ comment in ec code. This is a 9 month old change, so I am not sure why it is only causing a compile issue now. Reported by David Makepeace Reviewed-by: Tim Hudson Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/27186) (cherry picked from commit ea77608920e88812a5278be351e3ebbfdb81d992) --- diff --git a/crypto/ec/ecp_nistz256.c b/crypto/ec/ecp_nistz256.c index 36b1d164f4b..dfb63c4ca48 100644 --- a/crypto/ec/ecp_nistz256.c +++ b/crypto/ec/ecp_nistz256.c @@ -1522,7 +1522,7 @@ static int ecp_nistz256group_full_init(EC_GROUP *group, goto err; } if ((order = BN_bin2bn(params + 5 * param_len, param_len, NULL)) == NULL - || !BN_set_word(x, (BN_ULONG)1)) { // cofactor is 1 + || !BN_set_word(x, (BN_ULONG)1)) { /* cofactor is 1 */ ERR_raise(ERR_LIB_EC, ERR_R_BN_LIB); goto err; }