No description
Find a file
Maxim Dounin 91692bed55 Merge of r4965: upstream: fixed SIGSEGV with the "if" directive.
Configuration like

    location / {
        set $true 1;

        if ($true) {
            proxy_pass http://backend;
        }

        if ($true) {
            # nothing
        }
    }

resulted in segmentation fault due to NULL pointer dereference as the
upstream configuration wasn't initialized in an implicit location created
by the last if(), but the r->content_handler was set due to first if().

Instead of committing a suicide by dereferencing a NULL pointer, return
500 (Internal Server Error) in such cases, i.e. if uscf is NULL.  Better
fix would be to avoid such cases by fixing the "if" directive handling,
but it's out of scope of this patch.

Prodded by Piotr Sikora.
2013-02-10 03:27:15 +00:00
auto Merge of r4961: configure: better check for PCRE JIT. 2013-02-10 03:18:08 +00:00
conf Added the HTTPS fastcgi_param to fastcgi.conf. 2011-12-25 19:15:56 +00:00
contrib nginx-0.3.55-RELEASE import 2006-07-28 15:16:17 +00:00
docs nginx-1.2.6-RELEASE 2012-12-11 14:24:23 +00:00
misc Merge of r4870, r4871, r4890, r4895: minor fixes. 2012-11-12 18:39:51 +00:00
src Merge of r4965: upstream: fixed SIGSEGV with the "if" directive. 2013-02-10 03:27:15 +00:00