diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2004-02-09 07:46:43 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2004-02-09 07:46:43 +0000 |
| commit | 7af6b16936b630feabecbce0dbc9cf84b4943481 (patch) | |
| tree | 18301d35a84907e66fe94ddc7600d4ec6d600409 /src/http/ngx_http.c | |
| parent | 9260294400c902904cdf791c9c2e8fd069feec63 (diff) | |
| download | nginx-7af6b16936b630feabecbce0dbc9cf84b4943481.tar.gz nginx-7af6b16936b630feabecbce0dbc9cf84b4943481.tar.bz2 | |
nginx-0.0.2-2004-02-09-10:46:43 import
Diffstat (limited to 'src/http/ngx_http.c')
| -rw-r--r-- | src/http/ngx_http.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c index 2ada19171..08958141a 100644 --- a/src/http/ngx_http.c +++ b/src/http/ngx_http.c @@ -483,6 +483,9 @@ static char *ngx_http_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) ngx_pcalloc(cf->pool, sizeof(struct sockaddr_in)), NGX_CONF_ERROR); +#if (HAVE_SIN_LEN) + addr_in->sin_len = sizeof(struct sockaddr_in); +#endif addr_in->sin_family = AF_INET; addr_in->sin_addr.s_addr = in_addr[a].addr; addr_in->sin_port = htons((u_short) in_port[p].port); |
