From 9ced016cbce01342b414a7aedaa0fe6c8f03d671 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 7 Jul 2009 12:34:47 +0000 Subject: [PATCH] When sending a "protocol mismatch" error message, tell the client to exit afterwards, otherwise it hangs. --- server-msg.c | 1 + 1 file changed, 1 insertion(+) 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); }