components/apache2-modules/mod_security2/patches/fix_lua.patch
author Rich Burridge <rich.burridge@oracle.com>
Thu, 25 Oct 2012 13:35:55 -0700
changeset 1028 30d7999e80d9
child 1212 207ff3b0329a
permissions -rw-r--r--
7203970 lua update breaks things

--- modsecurity-apache_2.5.9/apache2/msc_lua.c.orig	2012-10-22 05:18:52.549922682 -0700
+++ modsecurity-apache_2.5.9/apache2/msc_lua.c	2012-10-22 05:21:37.503228311 -0700
@@ -81,7 +81,11 @@
     dumpr.script = script;
     dumpr.index = 0;
 
+#if LUA_VERSION_NUM >= 502
+    return lua_load(L, dump_reader, &dumpr, script->name, NULL);
+#else
     return lua_load(L, dump_reader, &dumpr, script->name);
+#endif
 }
 
 /**