]> git.kaiwu.me - nginx.git/commitdiff
fix the previous commit
authorIgor Sysoev <igor@sysoev.ru>
Sun, 19 Nov 2006 07:27:10 +0000 (07:27 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sun, 19 Nov 2006 07:27:10 +0000 (07:27 +0000)
src/event/ngx_event_pipe.c

index c535357e0c1a478f614639ac022037688ed46b4e..59b89b0f993361e7617914e53f6a0f0311e57f22 100644 (file)
@@ -324,11 +324,9 @@ ngx_event_pipe_read_upstream(ngx_event_pipe_t *p)
         }
 
         if (cl) {
-            while (cl->next) {
-                cl = cl->next;
-            }
+            for (ln = cl; ln->next; ln = ln->next) { /* void */ }
 
-            cl->next = p->free_raw_bufs;
+            ln->next = p->free_raw_bufs;
             p->free_raw_bufs = cl;
         }
     }