When sending a "protocol mismatch" error message, tell the client to exit

afterwards, otherwise it hangs.
pull/1/head
Nicholas Marriott 2009-07-07 12:34:47 +00:00
parent e538d4adae
commit 9ced016cbc
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}