aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-01-28 17:57:00 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-01-28 17:57:00 +0000
commit70024b3685126195994313790c26359236889485 (patch)
treecb1126d255d2e024b2638420d0a75baec89fa7d2
parent2af52440baa64aa86481cf5d9f6e05c7d257b4bb (diff)
downloadrtmux-70024b3685126195994313790c26359236889485.tar.gz
rtmux-70024b3685126195994313790c26359236889485.tar.bz2
rtmux-70024b3685126195994313790c26359236889485.zip
Exit properly when bas password.
-rw-r--r--server-msg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/server-msg.c b/server-msg.c
index cf68b301..c972b8fe 100644
--- a/server-msg.c
+++ b/server-msg.c
@@ -1,4 +1,4 @@
-/* $Id: server-msg.c,v 1.61 2009-01-20 18:48:46 nicm Exp $ */
+/* $Id: server-msg.c,v 1.62 2009-01-28 17:57:00 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -276,6 +276,7 @@ server_msg_fn_unlock(struct hdr *hdr, struct client *c)
if (server_unlock(pass) != 0) {
#define MSG "bad password"
server_write_client(c, MSG_ERROR, MSG, (sizeof MSG) - 1);
+ server_write_client(c, MSG_EXIT, NULL, 0);
return (0);
#undef MSG
}