httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@hyperreal.com>
Subject cvs commit: apache/src mod_proxy.c
Date Thu, 20 Jun 1996 14:17:04 GMT
ben         96/06/20 07:17:03

  Modified:    src       mod_proxy.c
  Log:
  Fix missing address family for connect, also remove unreachable statement.
  
  Revision  Changes    Path
  1.29      +2 -1      apache/src/mod_proxy.c
  
  Index: mod_proxy.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/mod_proxy.c,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -C3 -r1.28 -r1.29
  *** mod_proxy.c	1996/06/17 20:43:48	1.28
  --- mod_proxy.c	1996/06/20 14:17:01	1.29
  ***************
  *** 2342,2347 ****
  --- 2342,2349 ----
        parms = strchr(path, ';');
        if (parms != NULL) *(parms++) = '\0';
    
  +     memset(&server,'\0',sizeof server);
  +     server.sin_family=AF_INET;
        server.sin_port = htons(port);
        err = host2addr(host, &server.sin_addr);
        if (err != NULL) return proxyerror(r, err); /* give up */
  ***************
  *** 2663,2669 ****
    	    break;
    	default:
    	    return SERVICE_UNAVAILABLE;
  - 	    break;
        }
    
        Explain2("CONNECT to %s on port %d", host, port);
  --- 2665,2670 ----
  
  
  

Mime
View raw message