You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Benoit GARNIER <bu...@wanadoo.fr> on 1999/10/02 10:26:46 UTC

[ERROR] in apache-2.0/src/lib/apr/network_io/unix/sockets.c

The following fragment seems to be wrong in Apache2.0:

> ap_status_t ap_connect(struct socket_t *sock, char *hostname)
> {
>     struct hostent *hp;
> 
>     if (hostname == NULL) {
>         hp = gethostbyname(hostname);


I think it should be "if (hostname != NULL)"

_____________________________________________________________________________
Benoît GARNIER         | Tél. 01 45 57 51 76
88 avenue Félix FAURE  | email : bunch@wanadoo.fr
75015 PARIS            |


Re: [ERROR] in apache-2.0/src/lib/apr/network_io/unix/sockets.c

Posted by Ryan Bloom <rb...@ntrnet.net>.
Thanks, I just committed this change.

Ryan

On Sat, 2 Oct 1999, Benoit GARNIER wrote:

> 
> The following fragment seems to be wrong in Apache2.0:
> 
> > ap_status_t ap_connect(struct socket_t *sock, char *hostname)
> > {
> >     struct hostent *hp;
> > 
> >     if (hostname == NULL) {
> >         hp = gethostbyname(hostname);
> 
> 
> I think it should be "if (hostname != NULL)"
> 
> _____________________________________________________________________________
> Beno�t GARNIER         | T�l. 01 45 57 51 76
> 88 avenue F�lix FAURE  | email : bunch@wanadoo.fr
> 75015 PARIS            |
> 
> 

_______________________________________________________________________________
Ryan Bloom                        	rbb@ntrnet.net
6209 H Shanda Dr.
Raleigh, NC 27609		Ryan Bloom -- thinker, adventurer, artist,
				     writer, but mostly, friend.
-------------------------------------------------------------------------------