Correctly check for DH_compute_key() error
authortb <tb@openbsd.org>
Tue, 4 Oct 2022 20:46:13 +0000 (20:46 +0000)
committertb <tb@openbsd.org>
Tue, 4 Oct 2022 20:46:13 +0000 (20:46 +0000)
commitdb056c46e1a7471ae7e133842f76343c5d915a08
tree4acfb08343c5e50482537430733ccbddbfc8f622
parent3763acafaafd7ebc94a528f5e6abe4e8c148ffd0
Correctly check for DH_compute_key() error

DH_size() only gives an upper bound for the size of the key. The key can be
shorter.

Found after anton reported sporadic regress test failures

ok jsing
lib/libcsi/csi_dh.c