]> granicus.if.org Git - pdns/commitdiff
use correct luaL_openlib replacement for 5.2, fixes #1353
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Tue, 24 Jun 2014 10:33:10 +0000 (12:33 +0200)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Tue, 24 Jun 2014 10:33:10 +0000 (12:33 +0200)
pdns/lua-auth.cc

index 9155ea18d1979b1cebce717eab6a06ce6ebe61bb..05d8c820955d386a6863dc017fbc9150603b6534 100644 (file)
@@ -199,7 +199,7 @@ void AuthLua::registerLuaDNSPacket(void) {
   lua_pushvalue(d_lua, -2);  /* pushes the metatable */
   lua_settable(d_lua, -3);  /* metatable.__index = metatable */
 
-  luaL_newlib(d_lua, ldp_methods);
+  luaL_setfuncs(d_lua, ldp_methods, 0);
 
   lua_pop(d_lua, 1);
 }