summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2013-10-26 10:07:56 +1100
committerDamien Miller <djm@mindrot.org>2013-10-26 10:07:56 +1100
commit28631ceaa7acd9bc500f924614431542893c6a21 (patch)
tree2c057bfd7144e4591337b53253a7413068473835 /ssh.c
parent26506ad29350c5681815745cc90b3952a84cf118 (diff)
- djm@cvs.openbsd.org 2013/10/25 23:04:51
[ssh.c] fix crash when using ProxyCommand caused by previous commit - was calling freeaddrinfo(NULL); spotted by sthen@ and Tim Ruehsen, patch by sthen@
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ssh.c b/ssh.c
index 81921a10d..ef94591b1 100644
--- a/ssh.c
+++ b/ssh.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh.c,v 1.390 2013/10/24 08:19:36 djm Exp $ */ 1/* $OpenBSD: ssh.c,v 1.391 2013/10/25 23:04:51 djm 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
@@ -965,7 +965,9 @@ main(int ac, char **av)
965 options.use_privileged_port) != 0) 965 options.use_privileged_port) != 0)
966 exit(255); 966 exit(255);
967 967
968 freeaddrinfo(addrs); 968 if (addrs != NULL)
969 freeaddrinfo(addrs);
970
969 packet_set_timeout(options.server_alive_interval, 971 packet_set_timeout(options.server_alive_interval,
970 options.server_alive_count_max); 972 options.server_alive_count_max);
971 973