mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Fixed compat lua_load() with lua 5.2.x
This commit is contained in:
parent
21b8770484
commit
973bfae335
@ -79,7 +79,11 @@ static int lua_restore(lua_State *L, msc_script *script) {
|
||||
dumpr.script = script;
|
||||
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);
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user