summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-add.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2001-04-14 04:31:01 +0000
committerderaadt <deraadt@openbsd.org>2001-04-14 04:31:01 +0000
commitf366b229ed1262824dbbda428422620d851fabd3 (patch)
tree106466efa69c0720f6c46ca8a2ffff419a1e0251 /usr.bin/ssh/ssh-add.c
parentInstead of using KBC_AUXTEST, probe the aux port with KBC_AUXECHO, which is (diff)
downloadwireguard-openbsd-f366b229ed1262824dbbda428422620d851fabd3.tar.xz
wireguard-openbsd-f366b229ed1262824dbbda428422620d851fabd3.zip
do not double free
Diffstat (limited to 'usr.bin/ssh/ssh-add.c')
-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;
}