From aee43e89e7498e4405fbdcdedcfbf4b2bda7196e Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 14 Apr 2001 04:31:02 +0000 Subject: do not double free --- usr.bin/ssh/ssh-add.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/ssh/ssh-add.c b/usr.bin/ssh/ssh-add.c index 58cc26cfcc6..24ee85c2d6b 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.33 2001/04/09 15:12:23 markus Exp $"); +RCSID("$OpenBSD: ssh-add.c,v 1.34 2001/04/14 04:31:01 deraadt Exp $"); #include @@ -182,6 +182,7 @@ add_file(AuthenticationConnection *ac, const char *filename) } if (strcmp(pass, "") == 0) { xfree(pass); + pass = NULL; xfree(comment); return; } -- cgit v1.2.3