Skip to content

Commit

Permalink
Merge pull request alibaba#307 from taoyuanyuan/t
Browse files Browse the repository at this point in the history
Bugfix: the "[alert] zero size buf" error.
  • Loading branch information
yaoweibin committed Aug 21, 2013
2 parents 6204066 + 6c3d57e commit 8ff4191
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/http/modules/ngx_http_trim_filter_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,12 @@ ngx_http_trim_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
cl->buf->last_buf = 1;

*ll = cl;
ll = &cl->next;

} else {
if (ln->next == NULL) {
*ll = NULL;
}
}

} else {
Expand Down

0 comments on commit 8ff4191

Please sign in to comment.