Code question (canohost.c)

John Devitofranceschi jdvf at optonline.net
Wed Apr 28 13:33:09 EST 2004


In the latest release at around line 80 of canohost.c there is a call to
getaddrinfo (found in openbsd-compat/fake-rfc2553.c) where the second
parameter (it's supposed to be a service name, I suppose) is "0".  Why is
that? Shouldn't it be NULL?

I ask this because the resulting (seemingly useless and ultimately futile)
getservbyname("0", NULL) call is slowing down the time to login considerably
on my Openstep systems. Or does a call like this have a special meaning?

Thanks,
jd





More information about the openssh-unix-dev mailing list