diff options
author | 2019-05-03 03:27:38 +0000 | |
---|---|---|
committer | 2019-05-03 03:27:38 +0000 | |
commit | baa2e1b793647ca5f94aaa30243292d8b5e3f21e (patch) | |
tree | 954380192554edef2570fe33627aada4f34027d7 /usr.bin/ssh/sshconnect.c | |
parent | Wrap XMSS including in ifdef. Patch from markus at blueflash.cc, ok djm (diff) | |
download | wireguard-openbsd-baa2e1b793647ca5f94aaa30243292d8b5e3f21e.tar.xz wireguard-openbsd-baa2e1b793647ca5f94aaa30243292d8b5e3f21e.zip |
Free host on exit path. Patch from markus at blueflash.cc, ok djm@
Diffstat (limited to 'usr.bin/ssh/sshconnect.c')
-rw-r--r-- | usr.bin/ssh/sshconnect.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/sshconnect.c b/usr.bin/ssh/sshconnect.c index 4326c697ef3..9e865638f87 100644 --- a/usr.bin/ssh/sshconnect.c +++ b/usr.bin/ssh/sshconnect.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshconnect.c,v 1.314 2019/02/27 19:37:01 markus Exp $ */ +/* $OpenBSD: sshconnect.c,v 1.315 2019/05/03 03:27:38 dtucker Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -1252,6 +1252,7 @@ ssh_login(struct ssh *ssh, Sensitive *sensitive, const char *orighost, ssh_kex2(ssh, host, hostaddr, port); ssh_userauth2(ssh, local_user, server_user, host, sensitive); free(local_user); + free(host); } /* print all known host keys for a given host, but skip keys of given type */ |