mirror of
https://github.com/tmate-io/tmate.git
synced 2026-07-25 03:47:14 +00:00
When sending a "protocol mismatch" error message, tell the client to exit
afterwards, otherwise it hangs.
This commit is contained in:
parent
ff54332b66
commit
43ff216fa6
1 changed files with 2 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: server-msg.c,v 1.69 2009-06-25 16:21:32 nicm Exp $ */
|
||||
/* $OpenBSD: server-msg.c,v 1.4 2009/07/07 12:34:47 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
|
|
@ -189,6 +189,7 @@ server_msg_fn_identify(struct hdr *hdr, struct client *c)
|
|||
#define MSG "protocol version mismatch"
|
||||
server_write_client(c, MSG_ERROR, MSG, (sizeof MSG) - 1);
|
||||
#undef MSG
|
||||
server_write_client(c, MSG_EXIT, NULL, 0);
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue