mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 18:38:48 +00:00
Zero the password given to -U in the client as well.
This commit is contained in:
parent
50bd094856
commit
38b2c42f63
1
tmux.c
1
tmux.c
@ -421,6 +421,7 @@ main(int argc, char **argv)
|
|||||||
b = buffer_create(BUFSIZ);
|
b = buffer_create(BUFSIZ);
|
||||||
if (unlock) {
|
if (unlock) {
|
||||||
cmd_send_string(b, pass);
|
cmd_send_string(b, pass);
|
||||||
|
memset(pass, 0, strlen(pass));
|
||||||
client_write_server(
|
client_write_server(
|
||||||
&cctx, MSG_UNLOCK, BUFFER_OUT(b), BUFFER_USED(b));
|
&cctx, MSG_UNLOCK, BUFFER_OUT(b), BUFFER_USED(b));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user