aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-ldap/fix-search-iter.patch
blob: 60605341718da9f979d178d7b97b515b0b8112c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 */