diff options
author | Darren Tucker <dtucker@zip.com.au> | 2008-06-13 04:46:45 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2008-06-13 04:46:45 +1000 |
commit | 30ac73bcc2b2fa7b997cb572e5b03ea9107b7641 (patch) | |
tree | d9dde452e7cfedc6d201e976ae98ad1816d7f10b /monitor_wrap.h | |
parent | d32b28a307b308e5b5b052b4eb2a2c8f396c380b (diff) |
- 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.
Diffstat (limited to 'monitor_wrap.h')
0 files changed, 0 insertions, 0 deletions