Skip to content

Commit 6f9d155

Browse files
committed
always initialize r->state to 0.
1 parent 9bb6865 commit 6f9d155

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ngx_http_srcache_filter_module.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ ngx_http_srcache_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
479479
if (ctx->process_header == NULL) {
480480
dd("restore parent request header");
481481
ctx->process_header = ngx_http_srcache_process_status_line;
482+
r->state = 0; /* sw_start */
482483
}
483484

484485
for (cl = in; cl; cl = cl->next) {

0 commit comments

Comments
 (0)