[cups.bugs] [HIGH] STR #2486: httpAddrLookup() fails when getnameinfo() returns EAI_AGAIN status

Martin Doucha next_ghost at quick.cz
Sun Aug 19 09:15:48 PDT 2007


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

I have a CUPS print server in one subnet and a client in another. The
client CUPS is set to BrowsePoll the server but receives malformed IPP
response (printer-uri-supported=ipp://:631/printers/printer), the IP
address of the server is missing.

I've tracked the problem to httpAddrLookup() where getnameinfo() returns
EAI_AGAIN which causes this behaviour. The print server has no DNS entry
on the default DNS server.

The expected behaviour should be similar to gethostbyaddr failure right
below where the IP address is copied to the buffer instead.

Link: http://www.cups.org/str.php?L2486
Version: 1.2.12





More information about the cups-devel mailing list