]> git.pld-linux.org Git - packages/lighttpd.git/blob - lighttpd-getsockname.patch
aa0fe9123d34e1f904cfa570bded28370117b7ac
[packages/lighttpd.git] / lighttpd-getsockname.patch
1 --- lighttpd-1.3.7/src/response.c~      2004-11-26 00:40:59.000000000 +0200
2 +++ lighttpd-1.3.7/src/response.c       2005-01-28 21:07:28.000000000 +0200
3 @@ -1036,7 +1036,7 @@
4                                                 
5                                                 our_addr_len = sizeof(our_addr);
6                                                 
7 -                                               if (-1 == getpeername(con->fd, &(our_addr.plain), &our_addr_len)) {
8 +                                               if (-1 == getsockname(con->fd, &(our_addr.plain), &our_addr_len)) {
9                                                         con->http_status = 500;
10                                 
11                                                         log_error_write(srv, __FILE__, __LINE__, "ss",
This page took 0.024885 seconds and 2 git commands to generate.