From aaea5effe9942635ace793082fa8c1c2568ee47b Mon Sep 17 00:00:00 2001 From: Markus Friedl Date: Mon, 8 Jan 2001 21:48:18 +0000 Subject: missing free; thanks stevesk@pobox.com --- usr.bin/ssh/kex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin/ssh') diff --git a/usr.bin/ssh/kex.c b/usr.bin/ssh/kex.c index de315705e14..9a31ae92739 100644 --- a/usr.bin/ssh/kex.c +++ b/usr.bin/ssh/kex.c @@ -23,7 +23,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: kex.c,v 1.16 2000/12/20 19:37:22 markus Exp $"); +RCSID("$OpenBSD: kex.c,v 1.17 2001/01/08 21:48:17 markus Exp $"); #include "ssh.h" #include "ssh2.h" @@ -465,6 +465,7 @@ choose_hostkeyalg(Kex *k, char *client, char *server) k->hostkey_type = key_type_from_name(hostkeyalg); if (k->hostkey_type == KEY_UNSPEC) fatal("bad hostkey alg '%s'", hostkeyalg); + xfree(hostkeyalg); } Kex * -- cgit v1.2.3