diff options
author | dtucker@openbsd.org <dtucker@openbsd.org> | 2019-05-03 03:27:38 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2019-05-08 18:42:43 +1000 |
commit | 1c554a5d94b9de6bd5374e2992a5662746cc39ba (patch) | |
tree | da2c3645ee273b2386a985d282096c66bf337460 | |
parent | 99043bd64e5e0f427173f4fa83ef25a4676624a3 (diff) |
upstream: Free host on exit path. Patch from markus at
blueflash.cc, ok djm@
OpenBSD-Commit-ID: c54e9945d93c4ce28350d8b9fa8b71f744ef2b5a
-rw-r--r-- | sshconnect.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sshconnect.c b/sshconnect.c index fdcdcd855..c57f1a0ff 100644 --- a/sshconnect.c +++ b/sshconnect.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshconnect.c,v 1.314 2019/02/27 19:37:01 markus Exp $ */ | 1 | /* $OpenBSD: sshconnect.c,v 1.315 2019/05/03 03:27:38 dtucker Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -1292,6 +1292,7 @@ ssh_login(struct ssh *ssh, Sensitive *sensitive, const char *orighost, | |||
1292 | ssh_kex2(ssh, host, hostaddr, port); | 1292 | ssh_kex2(ssh, host, hostaddr, port); |
1293 | ssh_userauth2(ssh, local_user, server_user, host, sensitive); | 1293 | ssh_userauth2(ssh, local_user, server_user, host, sensitive); |
1294 | free(local_user); | 1294 | free(local_user); |
1295 | free(host); | ||
1295 | } | 1296 | } |
1296 | 1297 | ||
1297 | /* print all known host keys for a given host, but skip keys of given type */ | 1298 | /* print all known host keys for a given host, but skip keys of given type */ |