summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-add.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2001-04-14 16:27:57 +0000
committermarkus <markus@openbsd.org>2001-04-14 16:27:57 +0000
commit147556829c70d4ad8574d418ffb483261699c1f1 (patch)
tree3b7ac345710d249473a1c6baddf63c3693d70ce3 /usr.bin/ssh/ssh-add.c
parentremove some channels that are not appropriate for keepalive. (diff)
downloadwireguard-openbsd-147556829c70d4ad8574d418ffb483261699c1f1.tar.xz
wireguard-openbsd-147556829c70d4ad8574d418ffb483261699c1f1.zip
use clear_pass instead of xfree()
Diffstat (limited to 'usr.bin/ssh/ssh-add.c')
-rw-r--r--usr.bin/ssh/ssh-add.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/ssh/ssh-add.c b/usr.bin/ssh/ssh-add.c
index 24ee85c2d6b..a40aa5d567a 100644
--- a/usr.bin/ssh/ssh-add.c
+++ b/usr.bin/ssh/ssh-add.c
@@ -35,7 +35,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: ssh-add.c,v 1.34 2001/04/14 04:31:01 deraadt Exp $");
+RCSID("$OpenBSD: ssh-add.c,v 1.35 2001/04/14 16:27:57 markus Exp $");
#include <openssl/evp.h>
@@ -181,8 +181,7 @@ add_file(AuthenticationConnection *ac, const char *filename)
pass = ssh_askpass(askpass, msg);
}
if (strcmp(pass, "") == 0) {
- xfree(pass);
- pass = NULL;
+ clear_pass();
xfree(comment);
return;
}