From 495e14c3e22245d0e550c752f8a243a3a2a0f2bb Mon Sep 17 00:00:00 2001 From: deuce <> Date: Mon, 29 Jan 2018 20:13:32 +0000 Subject: [PATCH] Clear thread ownership of SSH session after authentication. --- src/sbbs3/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/sbbs3/main.cpp b/src/sbbs3/main.cpp index 25eaa49bd5..32f2513ac9 100644 --- a/src/sbbs3/main.cpp +++ b/src/sbbs3/main.cpp @@ -5283,6 +5283,12 @@ NO_SSH: } } switch(ssh_failed) { + case 0: + if(!cryptStatusOK(i=cryptSetAttribute(sbbs->ssh_session, CRYPT_PROPERTY_OWNER, CRYPT_UNUSED))) { + lprintf(LOG_WARNING,"%04d SSH Cryptlib error %d clearing owner",client_socket, i); + ssh_failed = 2; + } + break; case 1: lprintf(LOG_WARNING,"%04d SSH Cryptlib error %d setting AUTHRESPONSE",client_socket, i); break; -- GitLab