1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-01-18 04:58:51 +02:00

Better error when closing an already closed session in TLS test harness.

This commit is contained in:
David Steele 2020-06-05 15:08:39 -04:00
parent 38bf3d5154
commit d0e08a537d

View File

@ -311,6 +311,9 @@ void hrnTlsServerRunParam(IoRead *read, const String *certificate, const String
case hrnTlsCmdClose:
{
if (serverSession == NULL)
THROW(AssertError, "TLS session is already closed");
tlsSessionClose(serverSession, true);
tlsSessionFree(serverSession);
serverSession = NULL;