stas 2002/12/12 00:43:38 Modified: xs/Apache/Module Apache__Module.h Log: prevent segfaults, when scfg is NULL Revision Changes Path 1.8 +2 -1 modperl-2.0/xs/Apache/Module/Apache__Module.h Index: Apache__Module.h =================================================================== RCS file: /home/cvs/modperl-2.0/xs/Apache/Module/Apache__Module.h,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- Apache__Module.h 2 Dec 2002 14:20:23 -0000 1.7 +++ Apache__Module.h 12 Dec 2002 08:43:38 -0000 1.8 @@ -63,7 +63,8 @@ name = SvPV(pmodule, n_a); } - if (!(modp = apr_hash_get(scfg->modules, name, APR_HASH_KEY_STRING))) { + if (!(scfg->modules && + (modp = apr_hash_get(scfg->modules, name, APR_HASH_KEY_STRING)))) { return &PL_sv_undef; }