diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2001-04-14 16:27:58 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2001-04-14 16:27:58 +0000 |
commit | f9e9c12e9fea79bc7c95093f1e2b5a84e0bcf82c (patch) | |
tree | f61d71772ccb70b638a875a676c69a53965f0f87 /usr.bin | |
parent | f3a5ba14d599b59eacf75067b5be4ec8cc4b8481 (diff) |
use clear_pass instead of xfree()
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/ssh-add.c | 5 |
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; } |