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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user