You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by bj...@apache.org on 2002/04/14 10:38:15 UTC

cvs commit: httpd-2.0/server/mpm/mpmt_os2 mpmt_os2.c

bjh         02/04/14 01:38:15

  Modified:    server/mpm/mpmt_os2 mpmt_os2.c
  Log:
  Get local address info in listener sockets initialized when constructed in
  the child process from a descriptor passed from the parent. This fixed vhost
  address matching.
  
  Revision  Changes    Path
  1.20      +2 -0      httpd-2.0/server/mpm/mpmt_os2/mpmt_os2.c
  
  Index: mpmt_os2.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/mpm/mpmt_os2/mpmt_os2.c,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- mpmt_os2.c	20 Mar 2002 22:19:11 -0000	1.19
  +++ mpmt_os2.c	14 Apr 2002 08:38:15 -0000	1.20
  @@ -186,7 +186,9 @@
           }
   
           for (lr = ap_listeners; lr; lr = lr->next) {
  +            apr_sockaddr_t *sa;
               apr_os_sock_put(&lr->sd, &parent_info->listeners[num_listeners].listen_fd, pconf);
  +            apr_socket_addr_get(&sa, APR_LOCAL, lr->sd);
               num_listeners++;
           }