Do not zero cofactor on ec_guess_cofactor() success
authortb <tb@openbsd.org>
Tue, 29 Mar 2022 13:48:40 +0000 (13:48 +0000)
committertb <tb@openbsd.org>
Tue, 29 Mar 2022 13:48:40 +0000 (13:48 +0000)
commite2787e9f8b079612c26b9c13ba2a18b400256a5a
tree134f227f654753ffc312725e817e62b54a92c055
parent19cf83b3f6b020ea9573312fb745362fc59f8b87
Do not zero cofactor on ec_guess_cofactor() success

The cofactor we tried to calculate should only be zeroed if we failed
to compute it.

ok inoguchi jsing
lib/libcrypto/ec/ec_lib.c