From f90450f854bb868e8f6f0dad5c59c0eedb05e933 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 25 Jun 2009 15:56:25 +0000 Subject: [PATCH] Zero the password given to -U in the client as well. --- tmux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tmux.c b/tmux.c index c739697a..aabb3bcb 100644 --- a/tmux.c +++ b/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 @@ -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 {