Mercurial > hg > nginx-vendor-0-7
diff src/core/ngx_inet.h @ 452:fc5ebf0e5f98 NGINX_0_7_38
nginx 0.7.38
*) Feature: authentication failures logging.
*) Bugfix: name/password in auth_basic_user_file were ignored after odd
number of empty lines.
Thanks to Alexander Zagrebin.
*) Bugfix: a segmentation fault occurred in a master process, if long
path was used in unix domain socket; the bug had appeared in 0.7.36.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 23 Feb 2009 00:00:00 +0300 |
parents | 76a79816b771 |
children | a8424ffa495c |
line wrap: on
line diff
--- a/src/core/ngx_inet.h +++ b/src/core/ngx_inet.h @@ -22,14 +22,15 @@ /* * TODO: autoconfigure NGX_SOCKADDRLEN as * sizeof(struct sockaddr_storage) + * sizeof(struct sockaddr_un) * sizeof(struct sockaddr_in6) * sizeof(struct sockaddr_in) */ -#if (NGX_HAVE_INET6) -#define NGX_SOCKADDRLEN sizeof(struct sockaddr_in6) +#if (NGX_HAVE_UNIX_DOMAIN) +#define NGX_SOCKADDRLEN sizeof(struct sockaddr_un) #else -#define NGX_SOCKADDRLEN sizeof(struct sockaddr_in) +#define NGX_SOCKADDRLEN 512 #endif