17 lines
610 B
Diff
17 lines
610 B
Diff
|
diff -ru modsecurity-2.9.0.orig/apache2/msc_lua.c modsecurity-2.9.0/apache2/msc_lua.c
|
||
|
--- modsecurity-2.9.0.orig/apache2/msc_lua.c 2015-02-12 20:08:30.000000000 +0100
|
||
|
+++ modsecurity-2.9.0/apache2/msc_lua.c 2015-02-13 13:07:42.976716385 +0100
|
||
|
@@ -111,8 +111,11 @@
|
||
|
dump.pool = pool;
|
||
|
dump.parts = apr_array_make(pool, 128, sizeof(msc_script_part *));
|
||
|
|
||
|
+#if LUA_VERSION_NUM >= 503
|
||
|
+ lua_dump(L, dump_writer, &dump, 1);
|
||
|
+#else
|
||
|
lua_dump(L, dump_writer, &dump);
|
||
|
-
|
||
|
+#endif
|
||
|
(*script) = apr_pcalloc(pool, sizeof(msc_script));
|
||
|
(*script)->name = filename;
|
||
|
(*script)->parts = dump.parts;
|