mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 11:18:48 +00:00
Exit properly when bas password.
This commit is contained in:
parent
2af52440ba
commit
70024b3685
@ -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>
|
* 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) {
|
if (server_unlock(pass) != 0) {
|
||||||
#define MSG "bad password"
|
#define MSG "bad password"
|
||||||
server_write_client(c, MSG_ERROR, MSG, (sizeof MSG) - 1);
|
server_write_client(c, MSG_ERROR, MSG, (sizeof MSG) - 1);
|
||||||
|
server_write_client(c, MSG_EXIT, NULL, 0);
|
||||||
return (0);
|
return (0);
|
||||||
#undef MSG
|
#undef MSG
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user