]> git.pld-linux.org Git - packages/apache1-mod_fastcgi.git/blob - apache1-mod_fastcgi-segv-onload.patch
- release 3
[packages/apache1-mod_fastcgi.git] / apache1-mod_fastcgi-segv-onload.patch
1 --- libapache-mod-fastcgi-2.4.2.orig/debian/patches/apache2-segv-on-load.dpatch
2 +++ libapache-mod-fastcgi-2.4.2/debian/patches/apache2-segv-on-load.dpatch
3 @@ -0,0 +1,29 @@
4 +#! /bin/sh /usr/share/dpatch/dpatch-run
5 +## apache2-segv-on-load.dpatch by  <sugi@nemui.org>
6 +##
7 +## All lines beginning with `## DP:' are a description of the patch.
8 +## DP: No description.
9 +
10 +@DPATCH@
11 +diff -urNad libapache-mod-fastcgi~/mod_fastcgi.c libapache-mod-fastcgi/mod_fastcgi.c
12 +--- libapache-mod-fastcgi~/mod_fastcgi.c       2005-08-06 14:09:11.000000000 +0900
13 ++++ libapache-mod-fastcgi/mod_fastcgi.c        2006-10-06 20:52:46.368480801 +0900
14 +@@ -2850,10 +2850,15 @@
15
16 +     get_request_identity(r, &uid, &gid);
17
18 +-    if (fcgi_util_fs_get_by_id(r->filename, uid, gid))
19 ++    /* Only try this if r->filename is not NULL,
20 ++     * otherwise Apache 2 crashes with SIGSEGV... */
21 ++    if (r->filename)
22 +     {
23 +-        r->handler = FASTCGI_HANDLER_NAME;
24 +-        return OK;
25 ++        if (fcgi_util_fs_get_by_id(r->filename, uid, gid))
26 ++        {
27 ++            r->handler = FASTCGI_HANDLER_NAME;
28 ++            return OK;
29 ++        }
30 +     }
31
32 +     return DECLINED;
This page took 0.061273 seconds and 3 git commands to generate.