summaryrefslogtreecommitdiff
path: root/usr.sbin/mopd
diff options
context:
space:
mode:
authorRicardo Mestre <mestre@cvs.openbsd.org>2017-01-17 23:28:05 +0000
committerRicardo Mestre <mestre@cvs.openbsd.org>2017-01-17 23:28:05 +0000
commitd76ee4956982ac1c1baa844b72928e90f7503618 (patch)
tree40ae23cc6cf4299fc8495c700a5140729c176261 /usr.sbin/mopd
parentd1cc78f2f054530923e25b25d454028b601435ce (diff)
- spamd(8)'s -l accepts an IP address as argument to bind(2) and it calls
inet_pton(3) to check if it's valid and since that function doesn't provide a proper errno (POSIX doesn't mandate to do so) then if a string is given we may get this message: spamd: inet_pton: Undefined error: 0 - Instead replace that code to use getaddrinfo(3) from which is possible to get a proper error message, and at the same time being able to parse IPs and hostnames (if either the IP or host is not local then the next bind(2) will fail) - By default without arguments, spamd(8) will still bind(2) to 127.0.0.1 as it did before With feedback from deraadt@ and OK beck@
Diffstat (limited to 'usr.sbin/mopd')
0 files changed, 0 insertions, 0 deletions