diff options
author | 2013-10-25 23:04:51 +0000 | |
---|---|---|
committer | 2013-10-25 23:04:51 +0000 | |
commit | 18541001463d85db853a1144934c57c5b58304b4 (patch) | |
tree | c9e5afcfee848288a4cf138651dc61997810f8ec /usr.bin/ssh/ssh.c | |
parent | Fix/re-enable RX checksum offload for 8168C/8168CP revisions after revision rev 1.140. (diff) | |
download | wireguard-openbsd-18541001463d85db853a1144934c57c5b58304b4.tar.xz wireguard-openbsd-18541001463d85db853a1144934c57c5b58304b4.zip |
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 'usr.bin/ssh/ssh.c')
-rw-r--r-- | usr.bin/ssh/ssh.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c index 9402157800c..71aec4c65e3 100644 --- a/usr.bin/ssh/ssh.c +++ b/usr.bin/ssh/ssh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh.c,v 1.390 2013/10/24 08:19:36 djm Exp $ */ +/* $OpenBSD: ssh.c,v 1.391 2013/10/25 23:04:51 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -933,7 +933,9 @@ main(int ac, char **av) options.use_privileged_port) != 0) exit(255); - freeaddrinfo(addrs); + if (addrs != NULL) + freeaddrinfo(addrs); + packet_set_timeout(options.server_alive_interval, options.server_alive_count_max); |