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:
parent
38bf3d5154
commit
d0e08a537d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user