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
4 +#! /bin/sh /usr/share/dpatch/dpatch-run
5 +## apache2-segv-on-load.dpatch by <sugi@nemui.org>
7 +## All lines beginning with `## DP:' are a description of the patch.
8 +## DP: No description.
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 @@
16 + get_request_identity(r, &uid, &gid);
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... */
23 +- r->handler = FASTCGI_HANDLER_NAME;
25 ++ if (fcgi_util_fs_get_by_id(r->filename, uid, gid))
27 ++ r->handler = FASTCGI_HANDLER_NAME;