You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axkit-dev@xml.apache.org by ma...@apache.org on 2002/05/03 17:13:44 UTC
cvs commit: xml-axkit AxKit.xs
matts 02/05/03 08:13:44
Modified: . AxKit.xs
Log:
Fix segfault when AxKit doesn't handle all of apache tree
Obtained from: Jan Kratochvil
Revision Changes Path
1.2 +5 -1 xml-axkit/AxKit.xs
Index: AxKit.xs
===================================================================
RCS file: /home/cvs/xml-axkit/AxKit.xs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- AxKit.xs 13 Jan 2002 20:45:08 -0000 1.1
+++ AxKit.xs 3 May 2002 15:13:44 -0000 1.2
@@ -1,4 +1,4 @@
-/* $Id: AxKit.xs,v 1.1 2002/01/13 20:45:08 matts Exp $ */
+/* $Id: AxKit.xs,v 1.2 2002/05/03 15:13:44 matts Exp $ */
#ifdef __cplusplus
extern "C" {
@@ -194,6 +194,10 @@
}
cfg = (axkit_dir_config *)
ap_get_module_config(r->per_dir_config, &XS_AxKit);
+ if (!cfg) {
+ /* AxKit is not handler in this directory */
+ return;
+ }
if (level > cfg->debug_level) {
return;
}