]> andersk Git - openssh.git/commit - sshconnect.c
- dtucker@cvs.openbsd.org 2008/06/12 00:03:49
authordtucker <dtucker>
Thu, 12 Jun 2008 18:46:45 +0000 (18:46 +0000)
committerdtucker <dtucker>
Thu, 12 Jun 2008 18:46:45 +0000 (18:46 +0000)
commitc5daf22bbd1f885cca4ae4c1cf67352386f8e6b1
treebc61c5694febb2eab627b8440360b014a959b5a3
parent978410015d5d356b1ee66cd21e522883564ff675
   - dtucker@cvs.openbsd.org 2008/06/12 00:03:49
     [dns.c canohost.c sshconnect.c]
     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.
canohost.c
dns.c
sshconnect.c
This page took 0.045131 seconds and 5 git commands to generate.