summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/key.c
diff options
context:
space:
mode:
authordtucker <dtucker@openbsd.org>2008-06-12 00:03:49 +0000
committerdtucker <dtucker@openbsd.org>2008-06-12 00:03:49 +0000
commiteed45aec917baac8f7036aae32fa66d18930e3f9 (patch)
treecc0547b4551c3f4f1e6c1bad5bffdba37cedb800 /usr.bin/ssh/key.c
parentAdd a few comments. (diff)
downloadwireguard-openbsd-eed45aec917baac8f7036aae32fa66d18930e3f9.tar.xz
wireguard-openbsd-eed45aec917baac8f7036aae32fa66d18930e3f9.zip
Do not pass "0" strings as ports to getaddrinfo because the lookups
can slow things down and we never use the service info anyway. bz #859, patch from YOSHIFUJI Hideaki and John Devitofranceschi. ok deraadt@ djm@ djm belives that the reason for the "0" strings is to ensure that it's not possible to call getaddrinfo with both host and port being NULL. In the case of canohost.c host is a local array. In the case of sshconnect.c, it's checked for null immediately before use. In dns.c it ultimately comes from ssh.c:main() and is guaranteed to be non-null but it's not obvious, so I added a warning message in case it is ever passed a null.
Diffstat (limited to 'usr.bin/ssh/key.c')
0 files changed, 0 insertions, 0 deletions