summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2013-05-10 04:08:01 +0000
committerdjm <djm@openbsd.org>2013-05-10 04:08:01 +0000
commiteac2bc975e734b7efc9e461c2f8e6d756f74e45d (patch)
tree2561eb1d394b9a59067d721e37e4cc460a2ab148
parentsync some portability changes from portable OpenSSH (diff)
downloadwireguard-openbsd-eac2bc975e734b7efc9e461c2f8e6d756f74e45d.tar.xz
wireguard-openbsd-eac2bc975e734b7efc9e461c2f8e6d756f74e45d.zip
memleak in cert_free(), wasn't actually freeing the struct;
bz#2096 from shm AT digitalsun.pl
-rw-r--r--usr.bin/ssh/key.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/key.c b/usr.bin/ssh/key.c
index e37ae965e4b..bcb3152094d 100644
--- a/usr.bin/ssh/key.c
+++ b/usr.bin/ssh/key.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: key.c,v 1.101 2013/04/19 01:06:50 djm Exp $ */
+/* $OpenBSD: key.c,v 1.102 2013/05/10 04:08:01 djm Exp $ */
/*
* read_bignum():
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -189,6 +189,7 @@ cert_free(struct KeyCert *cert)
xfree(cert->principals);
if (cert->signature_key != NULL)
key_free(cert->signature_key);
+ xfree(cert);
}
void