On Sun, 2 Jan 2005, Sandi Fallon wrote:
> Just for the record:
>
> sprintf( log_buf, "Sock.sinaddr: %s", buf );
> log_string( log_buf );
>
> /* from = gethostbyaddr( (char *) &sock.sin_addr,
> sizeof(sock.sin_addr), AF_INET ); */
> from = NULL;
>
> dnew->host = str_dup( from ? from->h_name : buf );
> }
Technically, the appropriate fix is simple:
dnew->host = str_dup(inet_ntoa(sock.sin_addr));
And then you can remove a large block of unused code around the section
Sandi quoted.
- d.
--
Dominic J. Eidson
"Baruk Khazad! Khazad ai-menu!" - Gimli
-------------------------------------------------------------------------------
http://www.the-infinite.org/