summaryrefslogtreecommitdiff
path: root/ssh-add.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-04-14 23:07:16 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-04-14 23:07:16 +0000
commitda5d9b12256275411e34824a880f8ff471acd0e2 (patch)
treefb73d48e732679b44bb18bc5891c658545b3fcf0 /ssh-add.c
parent5744dc421d035c701b6660a58bed0d038c211375 (diff)
- deraadt@cvs.openbsd.org 2001/04/14 04:31:01
[ssh-add.c] do not double free
Diffstat (limited to 'ssh-add.c')
-rw-r--r--ssh-add.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ssh-add.c b/ssh-add.c
index f887455b..8032cd24 100644
--- a/ssh-add.c
+++ b/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>
@@ -188,6 +188,7 @@ add_file(AuthenticationConnection *ac, const char *filename)
}
if (strcmp(pass, "") == 0) {
xfree(pass);
+ pass = NULL;
xfree(comment);
return;
}