1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 17:53:13 +02:00

relay: immediately close connection if the handshake failed (weechat protocol)

This commit is contained in:
Sébastien Helleu
2020-04-18 00:08:11 +02:00
parent 242c378290
commit 970c99961c
4 changed files with 10 additions and 3 deletions
@@ -304,6 +304,10 @@ RELAY_WEECHAT_PROTOCOL_CALLBACK(handshake)
relay_weechat_protocol_handshake_reply (client, id);
/* if no algo was found, we close the connection immediately */
if (client->password_hash_algo < 0)
relay_client_set_status (client, RELAY_STATUS_AUTH_FAILED);
return WEECHAT_RC_OK;
}