mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
When sending a "protocol mismatch" error message, tell the client to exit
afterwards, otherwise it hangs.
This commit is contained in:
parent
e538d4adae
commit
9ced016cbc
@ -189,6 +189,7 @@ server_msg_fn_identify(struct hdr *hdr, struct client *c)
|
|||||||
#define MSG "protocol version mismatch"
|
#define MSG "protocol version mismatch"
|
||||||
server_write_client(c, MSG_ERROR, MSG, (sizeof MSG) - 1);
|
server_write_client(c, MSG_ERROR, MSG, (sizeof MSG) - 1);
|
||||||
#undef MSG
|
#undef MSG
|
||||||
|
server_write_client(c, MSG_EXIT, NULL, 0);
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user