Skip to content

Commit 55d3a5a

Browse files
committed
fix check
Signed-off-by: Stephan Mueller <[email protected]>
1 parent 84cf18c commit 55d3a5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backends/backend_openssl3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ openssl_ecdh_ss_common(uint64_t cipher,
920920
CKINT_O_LOG(EVP_PKEY_fromdata_init(kactx),
921921
"EVP_PKEY_fromdata_init failed with status=%d\n", ret);
922922

923-
if(!(privloc->len && Qxloc->len && Qyloc->len)) {
923+
if(!privloc->len && !Qxloc->len && !Qyloc->len) {
924924
pkey = EVP_PKEY_Q_keygen(NULL, NULL, "EC", curve_name);
925925
CKNULL_LOG(pkey, -EFAULT, "EVP_PKEY_Q_keygen failed\n");
926926

0 commit comments

Comments
 (0)