summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tmux.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-06-04 21:56:14 +0000
committernicm <nicm@openbsd.org>2009-06-04 21:56:14 +0000
commitaf4340719dd47021b29d98f844832f83b066e623 (patch)
treeedd45bdb4b9c4a863eeff0034eede79cb0f28ea4 /usr.bin/tmux/tmux.c
parentImplement rib_find and add a rib id to struct rde_peer. (diff)
downloadwireguard-openbsd-af4340719dd47021b29d98f844832f83b066e623.tar.xz
wireguard-openbsd-af4340719dd47021b29d98f844832f83b066e623.zip
Zero the password given to -U in the client as well.
Diffstat (limited to 'usr.bin/tmux/tmux.c')
-rw-r--r--usr.bin/tmux/tmux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.c b/usr.bin/tmux/tmux.c
index ddd97ae9de0..af348e5344e 100644
--- a/usr.bin/tmux/tmux.c
+++ b/usr.bin/tmux/tmux.c
@@ -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>
@@ -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 {