aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-06-04 21:56:14 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-06-04 21:56:14 +0000
commit38b2c42f63eaa5fcd6f750aafc756b2a5e5b4395 (patch)
treea6dbe1eeafb0af8356c66ab8f7101a8c84b070f6
parent50bd0948564c64d76acebf8f6c5b4f3ef7b6b4fc (diff)
downloadrtmux-38b2c42f63eaa5fcd6f750aafc756b2a5e5b4395.tar.gz
rtmux-38b2c42f63eaa5fcd6f750aafc756b2a5e5b4395.tar.bz2
rtmux-38b2c42f63eaa5fcd6f750aafc756b2a5e5b4395.zip
Zero the password given to -U in the client as well.
-rw-r--r--tmux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tmux.c b/tmux.c
index 491e49d4..3dccbf1b 100644
--- a/tmux.c
+++ b/tmux.c
@@ -421,6 +421,7 @@ main(int argc, char **argv)
b = buffer_create(BUFSIZ);
if (unlock) {
cmd_send_string(b, pass);
+ memset(pass, 0, strlen(pass));
client_write_server(
&cctx, MSG_UNLOCK, BUFFER_OUT(b), BUFFER_USED(b));
} else {