From 7bb550c7687f2f69fcbe872f9181e946ded15bf1 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Sun, 18 Feb 2024 08:26:08 +0100 Subject: [PATCH] Return correct value from cert callback when no tasks are used (#846) --- openssl-dynamic/src/main/c/sslcontext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openssl-dynamic/src/main/c/sslcontext.c b/openssl-dynamic/src/main/c/sslcontext.c index 1d45ca75a..ec8dcbb24 100644 --- a/openssl-dynamic/src/main/c/sslcontext.c +++ b/openssl-dynamic/src/main/c/sslcontext.c @@ -2016,7 +2016,7 @@ static int certificate_cb(SSL* ssl, void* arg) { // Check if java threw an exception and if so signal back that we should not continue with the handshake. if ((*e)->ExceptionCheck(e) != JNI_TRUE) { // Everything good... - ret = -1; + ret = 1; } }