If the login-connection was already closed, this caused too many
unreferences.
Fixes:
Panic: file master-login.c: line 544 (master_login_conn_unref): assertion failed: (conn->clients == NULL)
/* we've sent the reply. the connection is no longer needed,
so disconnect it (before login process disconnects us and
logs an error) */
- master_login_conn_close(conn);
- master_login_conn_unref(&conn);
+ if (!master_login_conn_is_closed(conn)) {
+ master_login_conn_close(conn);
+ master_login_conn_unref(&conn);
+ }
/* execute post-login scripts before finishing auth */
if (master_login_postlogin(client, auth_args,