Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > 96693e185cc9643dc368ab5196e0d8bb > files > 4

apache-mod_protection-0.0.2-12mdv2010.1.src.rpm

--- mod_protection.c	2002-04-20 09:33:31.000000000 -0400
+++ mod_protection.c.oden	2002-11-05 09:35:46.000000000 -0500
@@ -799,8 +799,16 @@
     return DECLINED;
 }
 
+static int protection_init_handler(apr_pool_t *p, apr_pool_t *plog,
+                                apr_pool_t *ptemp, server_rec *s)
+{
+    ap_add_version_component(p, "mod_protection/0.0.2");
+    return OK;
+}
+        
 static void register_hooks(apr_pool_t *p)
 {
+    ap_hook_post_config(protection_init_handler, NULL, NULL, APR_HOOK_MIDDLE);
     ap_hook_translate_name(trans_protection,NULL,NULL,APR_HOOK_MIDDLE);
 }