summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-04-14 04:31:02 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-04-14 04:31:02 +0000
commitaee43e89e7498e4405fbdcdedcfbf4b2bda7196e (patch)
tree8730ea3f651be07f4a96d342ae9ededffc8e0487
parent72ede3841a016de544c1ecb1d24910a3177b3233 (diff)
do not double free
-rw-r--r--usr.bin/ssh/ssh-add.c3
1 files changed, 2 insertions, 1 deletions
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 <openssl/evp.h>
@@ -182,6 +182,7 @@ add_file(AuthenticationConnection *ac, const char *filename)
}
if (strcmp(pass, "") == 0) {
xfree(pass);
+ pass = NULL;
xfree(comment);
return;
}