From: Alain Spineux Date: Mon, 14 Nov 2022 18:17:08 +0000 (+0100) Subject: Display an error message when SSL_shutdown() return -1 X-Git-Tag: Beta-15.0.0~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6438f1b39864ff0506731884fb12b9305dea0d7;p=thirdparty%2Fbacula.git Display an error message when SSL_shutdown() return -1 - only 0 and the SSL_shutdown() retry is handled --- diff --git a/bacula/src/lib/tls.c b/bacula/src/lib/tls.c index 120c2b43d..782111107 100644 --- a/bacula/src/lib/tls.c +++ b/bacula/src/lib/tls.c @@ -833,7 +833,8 @@ int tls_bsock_shutdown(BSOCKCORE *bsock) tid = start_bsock_timer(bsock, 60 * 2); err = SSL_shutdown(bsock->tls->openssl); stop_bsock_timer(tid); - + } + if (err == -1) { switch (SSL_get_error(bsock->tls->openssl, err)) { case SSL_ERROR_NONE: break;