diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-07-07 12:34:47 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-07-07 12:34:47 +0000 |
commit | 9ced016cbce01342b414a7aedaa0fe6c8f03d671 (patch) | |
tree | 14a5c8fed83e266ac5130ba354978b39a89cee39 | |
parent | e538d4adae2b17ad177f340091a241d212b2b5c1 (diff) | |
download | rtmux-9ced016cbce01342b414a7aedaa0fe6c8f03d671.tar.gz rtmux-9ced016cbce01342b414a7aedaa0fe6c8f03d671.tar.bz2 rtmux-9ced016cbce01342b414a7aedaa0fe6c8f03d671.zip |
When sending a "protocol mismatch" error message, tell the client to exit
afterwards, otherwise it hangs.
-rw-r--r-- | server-msg.c | 1 |
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); } |