Zero the password given to -U in the client as well.

pull/1/head
Nicholas Marriott 2009-06-04 21:56:14 +00:00
parent 50bd094856
commit 38b2c42f63
1 changed files with 1 additions and 0 deletions

1
tmux.c
View File

@ -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 {