commit 05cf675: [Minor] Fix check
Vsevolod Stakhov
vsevolod at highsecure.ru
Wed Aug 14 15:14:09 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-08-14 16:06:53 +0100
URL: https://github.com/rspamd/rspamd/commit/05cf67521d7a153170bbebbb8caed93d3af322f7
[Minor] Fix check
---
src/lua/lua_tcp.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/lua/lua_tcp.c b/src/lua/lua_tcp.c
index c5518450a..10c57cea4 100644
--- a/src/lua/lua_tcp.c
+++ b/src/lua/lua_tcp.c
@@ -1582,17 +1582,20 @@ lua_tcp_request (lua_State *L)
lua_gettable (L, -2);
if (lua_type (L, -1) == LUA_TBOOLEAN) {
ssl_noverify = lua_toboolean (L, -1);
+ lua_pop (L, 1);
}
else {
+ lua_pop (L, 1); /* Previous nil... */
/* Similar to lua http, meh... */
lua_pushstring (L, "no_ssl_verify");
lua_gettable (L, -2);
+
if (lua_type (L, -1) == LUA_TBOOLEAN) {
ssl_noverify = lua_toboolean (L, -1);
}
+
lua_pop (L, 1);
}
- lua_pop (L, 1);
lua_pushstring (L, "on_connect");
lua_gettable (L, -2);
More information about the Commits
mailing list