From: Brian Havard Date: Sun, 14 Apr 2002 08:38:15 +0000 (+0000) Subject: Get local address info in listener sockets initialized when constructed in X-Git-Tag: 2.0.36~205 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d54a593253647c2b468a8b557c73ff94dafb839c;p=thirdparty%2Fapache%2Fhttpd.git 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94642 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/mpmt_os2/mpmt_os2.c b/server/mpm/mpmt_os2/mpmt_os2.c index b4689488611..4609e7c91bf 100644 --- a/server/mpm/mpmt_os2/mpmt_os2.c +++ b/server/mpm/mpmt_os2/mpmt_os2.c @@ -186,7 +186,9 @@ int ap_mpm_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s ) } 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++; }