Skip to content

Commit 7b3d351

Browse files
committed
fix(pkey) clean up errors when trying loading key types
1 parent c605799 commit 7b3d351

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/resty/openssl/pkey.lua

+3
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,9 @@ local function load_pkey(txt, fmt, typ)
182182
if ctx == nil then
183183
return nil, format_error("pkey.new:load_pkey")
184184
end
185+
186+
-- clear errors occur when trying
187+
C.ERR_clear_error()
185188
return ctx, nil
186189
end
187190

0 commit comments

Comments
 (0)