From 38b2c42f63eaa5fcd6f750aafc756b2a5e5b4395 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 4 Jun 2009 21:56:14 +0000 Subject: [PATCH] Zero the password given to -U in the client as well. --- tmux.c | 1 + 1 file changed, 1 insertion(+) 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 {