diff src/http/ngx_http.c @ 104:7db96f59bc29

nginx-0.0.1-2003-06-12-09:54:39 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 12 Jun 2003 05:54:39 +0000
parents 6dfda4cf5200
children 152567c11325
line wrap: on
line diff
--- a/src/http/ngx_http.c
+++ b/src/http/ngx_http.c
@@ -513,7 +513,8 @@ static char *ngx_http_block(ngx_conf_t *
 
                     /* prepare for the next cycle */
 
-                    (char *) in_port[p].addrs.elts += in_port[p].addrs.size;
+                    in_port[p].addrs.elts = (char *) in_port[p].addrs.elts
+                                                       + in_port[p].addrs.size;
                     in_port[p].addrs.nelts--;
 
                     in_addr = (ngx_http_in_addr_t *) in_port[p].addrs.elts;