twosigma / nsncd

nscd-compatible daemon that proxies lookups, without caching
Apache License 2.0
59 stars 14 forks source link

Getservbyport should refuse port 0 #143

Closed morisja closed 3 weeks ago

morisja commented 3 weeks ago

issue-142

If nsncd queries sssd for port 0, ENOMEM is returned causing error logs. This has been confirmed by using the getservbyport_r man page example and amending nsswitch.conf