aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-ldap/fix-search-iter.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-03-10 00:32:24 +0100
committerJakub Jirutka <jakub@jirutka.cz>2017-03-10 00:33:18 +0100
commit066b35bd070d22f59e5f3fd5be29614d34517721 (patch)
tree26a2e5056b484382130074ce02d8c83288da42da /main/lua-ldap/fix-search-iter.patch
parent23980ddbd76a735adb0f6f8f66b4a80d72df363a (diff)
downloadaports-066b35bd070d22f59e5f3fd5be29614d34517721.tar.bz2
aports-066b35bd070d22f59e5f3fd5be29614d34517721.tar.xz
main/lua-ldap: fix segfault, iteration error and run tests
Diffstat (limited to 'main/lua-ldap/fix-search-iter.patch')
-rw-r--r--main/lua-ldap/fix-search-iter.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/main/lua-ldap/fix-search-iter.patch b/main/lua-ldap/fix-search-iter.patch
new file mode 100644
index 0000000000..6060534171
--- /dev/null
+++ b/main/lua-ldap/fix-search-iter.patch
@@ -0,0 +1,18 @@
+From: Jakub Jirutka <jakub@jirutka.cz>
+Date: Fri, 10 Mar 2017 00:29:30 +0100
+Subject: [PATCH] Fix error when calling search result iterator
+
+This patch fixes error:
+
+ tests/test.lua:175: bad argument #1 to 'iter' (table expected, got no value)
+--- a/src/lualdap.c
++++ b/src/lualdap.c
+@@ -726,8 +726,6 @@
+ int rc;
+ int ret;
+
+- luaL_checktype(L, 1, LUA_TTABLE);
+-
+ lua_rawgeti (L, LUA_REGISTRYINDEX, search->conn);
+ conn = (conn_data *)lua_touserdata (L, -1); /* get connection */
+