Skip to content

Commit

Permalink
lib-auth: auth-master - Make sure connection is disconnected upon error.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanbosch committed Mar 8, 2019
1 parent 211e7bc commit 9e1f88a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib-auth/auth-master.c
Expand Up @@ -169,6 +169,8 @@ static void auth_master_destroy(struct connection *_conn)
struct auth_master_connection *conn =
container_of(_conn, struct auth_master_connection, conn);

if (conn->connected)
connection_disconnect(&conn->conn);
conn->connected = FALSE;
conn->sent_handshake = FALSE;

Expand Down

0 comments on commit 9e1f88a

Please sign in to comment.