From 7457f2af01d77c4bdeaef3a6c211bb2f1e215a9c Mon Sep 17 00:00:00 2001 From: Ben Lindstrom Date: Sat, 14 Apr 2001 23:10:09 +0000 Subject: - markus@cvs.openbsd.org 2001/04/14 16:27:57 [ssh-add.c] use clear_pass instead of xfree() --- ChangeLog | 5 ++++- ssh-add.c | 5 ++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 62f869556..727db9604 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,9 @@ - markus@cvs.openbsd.org 2001/04/14 16:17:14 [channels.c] remove some channels that are not appropriate for keepalive. + - markus@cvs.openbsd.org 2001/04/14 16:27:57 + [ssh-add.c] + use clear_pass instead of xfree() 20010414 - Sync with OpenBSD glob.c, strlcat.c and vis.c changes @@ -5072,4 +5075,4 @@ - Wrote replacements for strlcpy and mkdtemp - Released 1.0pre1 -$Id: ChangeLog,v 1.1112 2001/04/14 23:08:36 mouring Exp $ +$Id: ChangeLog,v 1.1113 2001/04/14 23:10:09 mouring Exp $ diff --git a/ssh-add.c b/ssh-add.c index 8032cd24f..2ac2c2515 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 @@ -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; } -- cgit v1.2.3