diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-12-08 11:42:17 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-12-08 11:42:17 +0000 |
commit | 891ad9ef8ce431a24b4b011a63097b57d643c305 (patch) | |
tree | 2ce2212a64ba63d4db92b0479e46133ca6ede6e3 /src/lua/lua_rsa.c | |
parent | b81a068aea8dca451b1f106ef191c0820db52c52 (diff) | |
download | rspamd-891ad9ef8ce431a24b4b011a63097b57d643c305.tar.gz rspamd-891ad9ef8ce431a24b4b011a63097b57d643c305.zip |
[Fix] Clear SSL errors
Diffstat (limited to 'src/lua/lua_rsa.c')
-rw-r--r-- | src/lua/lua_rsa.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lua/lua_rsa.c b/src/lua/lua_rsa.c index 0d4a268ed..a554cd79b 100644 --- a/src/lua/lua_rsa.c +++ b/src/lua/lua_rsa.c @@ -620,9 +620,10 @@ lua_rsa_verify_memory (lua_State *L) signature->str, signature->len, rsa); if (ret == 0) { - msg_info ("cannot check rsa signature for data: %s", - ERR_error_string (ERR_get_error (), NULL)); lua_pushboolean (L, FALSE); + lua_pushstring (L, ERR_error_string (ERR_get_error (), NULL)); + + return 2; } else { lua_pushboolean (L, TRUE); |