httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dr...@locus.apache.org
Subject cvs commit: apache-2.0/src/main http_core.c
Date Fri, 03 Nov 2000 14:48:47 GMT
dreid       00/11/03 06:48:44

  Modified:    src/main http_core.c
  Log:
  Another removal of using raw sockaddr where we should be using APR.
  
  Revision  Changes    Path
  1.197     +2 -4      apache-2.0/src/main/http_core.c
  
  Index: http_core.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/main/http_core.c,v
  retrieving revision 1.196
  retrieving revision 1.197
  diff -u -r1.196 -r1.197
  --- http_core.c	2000/11/02 22:53:56	1.196
  +++ http_core.c	2000/11/03 14:48:40	1.197
  @@ -658,10 +658,8 @@
   	&& conn->remote_host == NULL
   	&& (type == REMOTE_DOUBLE_REV
   	    || hostname_lookups != HOSTNAME_LOOKUP_OFF)) {
  -	iaddr = &(conn->remote_addr.sin_addr);
  -	hptr = gethostbyaddr((char *)iaddr, sizeof(struct in_addr), AF_INET);
  -	if (hptr != NULL) {
  -	    conn->remote_host = apr_pstrdup(conn->pool, (void *)hptr->h_name);
  +	if (apr_get_remote_hostname(&conn->remote_host, conn->client_socket)
  +            == APR_SUCCESS){
   	    ap_str_tolower(conn->remote_host);
   	   
   	    if (hostname_lookups == HOSTNAME_LOOKUP_DOUBLE) {
  
  
  

Mime
View raw message