No description
Find a file
Maxim Dounin 16f4851c13 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.
2012-12-13 16:05:59 +00:00
auto Configure: better check for PCRE JIT. 2012-12-12 13:50:07 +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.3.9-RELEASE 2012-11-27 13:55:34 +00:00
misc Style, parentheses instead of braces in misc/GNUMakefile. 2012-10-30 11:09:38 +00:00
src Upstream: fixed SIGSEGV with the "if" directive. 2012-12-13 16:05:59 +00:00