summaryrefslogtreecommitdiff
path: root/ssh-add.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-04-14 23:10:09 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-04-14 23:10:09 +0000
commit7457f2af01d77c4bdeaef3a6c211bb2f1e215a9c (patch)
tree978ea03111a2da9b8b119a22ec3408f9e995f5dd /ssh-add.c
parentd334b2768b80640d3b9aa229332482ae572d08ad (diff)
- markus@cvs.openbsd.org 2001/04/14 16:27:57
[ssh-add.c] use clear_pass instead of xfree()
Diffstat (limited to 'ssh-add.c')
-rw-r--r--ssh-add.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ssh-add.c b/ssh-add.c
index 8032cd24..2ac2c251 100644
--- a/ssh-add.c
+++ b/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>
@@ -187,8 +187,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;
}