mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Fixed compat lua_load() with lua 5.2.x
This commit is contained in:
@@ -79,7 +79,11 @@ static int lua_restore(lua_State *L, msc_script *script) {
|
|||||||
dumpr.script = script;
|
dumpr.script = script;
|
||||||
dumpr.index = 0;
|
dumpr.index = 0;
|
||||||
|
|
||||||
|
#if LUA_VERSION_NUM > 501
|
||||||
|
return lua_load(L, dump_reader, &dumpr, script->name, NULL);
|
||||||
|
#else
|
||||||
return lua_load(L, dump_reader, &dumpr, script->name);
|
return lua_load(L, dump_reader, &dumpr, script->name);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user