From 92db52b080980a569556849796adec5ba4fe4c30 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Tue, 20 Aug 2019 13:39:17 -0300 Subject: [PATCH] Disabling unlock delay feature when the ms value is 0. --- src/core/properties.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/properties.c b/src/core/properties.c index 99e51eb..651c8ed 100644 --- a/src/core/properties.c +++ b/src/core/properties.c @@ -739,7 +739,8 @@ LIB3270_EXPORT char * lib3270_get_ssl_peer_certificate_text(H3270 *hSession) LIB3270_EXPORT int lib3270_set_unlock_delay(H3270 *hSession, unsigned int delay) { CHECK_SESSION_HANDLE(hSession); - hSession->unlock_delay_ms = (unsigned short) delay; + hSession->unlock_delay = (delay == 0 ? 0 : 1); + hSession->unlock_delay_ms = (unsigned short) delay; return 0; } -- libgit2 0.21.2