[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug in glibc 2.3.2 gethostbyaddr_r
From: |
Jeffrey Stedfast |
Subject: |
bug in glibc 2.3.2 gethostbyaddr_r |
Date: |
Wed, 08 Oct 2003 17:02:36 -0400 |
a number of Evolution users have complained that they cannot send mail.
Upon inspection, it was found that their hostname strings contained \n's
and/or were otherwise corrupted in odd ways.
when sending mail via SMTP, the client is supposed to send:
"EHLO %s\r\n"
where %s is to be replaced with the machine's hostname, which we get by
calling gethostbyname_r() with the address retrieved from getsockname()
on the socket connected to the SMTP server.
the bug is that gethostbyaddr_r() returns success, but the resultant
struct hostent's h_name member seemingly points to some garbage string.
from all the reports I've seen, they all seem to be some random chunk of
text (sometimes including a newline) from /etc/hosts. the results have
sometimes been portions of comment blocks, multiple aliases, or some
combination thereof.
a workaround seems to be to have the users edit /etc/hosts and remove
all blank lines and all comment blocks from the file. once that is done,
gethostbyaddr_r() seems to work properly.
Jeff
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug in glibc 2.3.2 gethostbyaddr_r,
Jeffrey Stedfast <=