Changeset 4946:2570296374b4 in nginx


Ignore:
Timestamp:
12/06/12 21:22:58 (3 years ago)
Author:
Ruslan Ermilov <ru@…>
Branch:
default
Convert:
svn:c3fe7df1-7212-e011-8a91-001109144009/trunk@4947
Message:

Xslt: prevented infinite loop.

If XSLT transformation failed and error 500 was handled in the same
location, an infinite loop occured that exhausted the stack.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/http/modules/ngx_http_xslt_filter_module.c

    r4746 r4946  
    308308
    309309    if (b == NULL) {
    310         return ngx_http_filter_finalize_request(r, NULL,
     310        return ngx_http_filter_finalize_request(r, &ngx_http_xslt_filter_module,
    311311                                               NGX_HTTP_INTERNAL_SERVER_ERROR);
    312312    }
     
    316316    if (cln == NULL) {
    317317        ngx_free(b->pos);
    318         return ngx_http_filter_finalize_request(r, NULL,
     318        return ngx_http_filter_finalize_request(r, &ngx_http_xslt_filter_module,
    319319                                               NGX_HTTP_INTERNAL_SERVER_ERROR);
    320320    }
Note: See TracChangeset for help on using the changeset viewer.