diff options
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_tcp.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); |