From 7c473251db596719659c49d32e024687582f7e10 Mon Sep 17 00:00:00 2001 From: d-strobel Date: Mon, 1 Sep 2025 22:13:55 +0200 Subject: [PATCH] fix: prevent global variable assignment by declaring as local --- lib/resty/ldap/client.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/resty/ldap/client.lua b/lib/resty/ldap/client.lua index 442dbfc..a5ebc7e 100644 --- a/lib/resty/ldap/client.lua +++ b/lib/resty/ldap/client.lua @@ -133,7 +133,7 @@ local function _init_socket(self) end if socket_config.start_tls or socket_config.ldaps then - _, err = sock:sslhandshake(true, host, socket_config.ssl_verify) + local _, err = sock:sslhandshake(true, host, socket_config.ssl_verify) if err ~= nil then return fmt("do TLS handshake on %s:%s failed: %s", host, tostring(port), err)