summaryrefslogtreecommitdiffstats
path: root/server-msg.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-07-07 12:34:47 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-07-07 12:34:47 +0000
commit9ced016cbce01342b414a7aedaa0fe6c8f03d671 (patch)
tree14a5c8fed83e266ac5130ba354978b39a89cee39 /server-msg.c
parente538d4adae2b17ad177f340091a241d212b2b5c1 (diff)
When sending a "protocol mismatch" error message, tell the client to exit
afterwards, otherwise it hangs.
Diffstat (limited to 'server-msg.c')
-rw-r--r--server-msg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/server-msg.c b/server-msg.c
index ef01e100..c52fe800 100644
--- a/server-msg.c
+++ b/server-msg.c
@@ -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);
}