diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-06-25 15:56:25 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-06-25 15:56:25 +0000 |
commit | f90450f854bb868e8f6f0dad5c59c0eedb05e933 (patch) | |
tree | 87f0059aa3dd00e23b557b095f0c66d1f353e012 /tmux.c | |
parent | 418128bebc5b8025d195f20bccbf618a8b0848d4 (diff) | |
download | rtmux-f90450f854bb868e8f6f0dad5c59c0eedb05e933.tar.gz rtmux-f90450f854bb868e8f6f0dad5c59c0eedb05e933.tar.bz2 rtmux-f90450f854bb868e8f6f0dad5c59c0eedb05e933.zip |
Zero the password given to -U in the client as well.
Diffstat (limited to 'tmux.c')
-rw-r--r-- | tmux.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.c,v 1.6 2009/06/03 17:04:16 nicm Exp $ */ +/* $OpenBSD: tmux.c,v 1.7 2009/06/04 21:56:14 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -437,6 +437,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 { |