X-Git-Url: http://git.rot13.org/?p=nginx.git;a=blobdiff_plain;f=nginx%2Fsrc%2Fhttp%2Fmodules%2Fngx_http_sub_filter_module.c;h=b07d2c15d989459b0110c62fc494d204ab45c5a7;hp=1cec8b63311f85a2f366add92c05743d7f9a5c51;hb=edef48fd7f4269957bc636301b0ffc73a16f9a4a;hpb=ce73043f2886947385224e3e77da24a2bb1643b1 diff --git a/nginx/src/http/modules/ngx_http_sub_filter_module.c b/nginx/src/http/modules/ngx_http_sub_filter_module.c index 1cec8b6..b07d2c1 100644 --- a/nginx/src/http/modules/ngx_http_sub_filter_module.c +++ b/nginx/src/http/modules/ngx_http_sub_filter_module.c @@ -204,7 +204,7 @@ ngx_http_sub_body_filter(ngx_http_request_t *r, ngx_chain_t *in) /* add the incoming chain to the chain ctx->in */ if (in) { - if (ngx_chain_add_copy(r->pool, &ctx->in, in) == NGX_ERROR) { + if (ngx_chain_add_copy(r->pool, &ctx->in, in) != NGX_OK) { return NGX_ERROR; } }