You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/11/22 14:12:01 UTC

[GitHub] [apisix] starsz commented on a change in pull request #2815: fix: check decrypt key to prevent lua thread aborted (#2791)

starsz commented on a change in pull request #2815:
URL: https://github.com/apache/apisix/pull/2815#discussion_r528341171



##########
File path: apisix/ssl/router/radixtree_sni.lua
##########
@@ -67,9 +67,12 @@ local function decrypt_priv_pkey(iv, key)
         return key
     end
 
-    local decrypted = iv:decrypt(ngx_decode_base64(key))
-    if decrypted then
-        return decrypted
+    local decoded_key = ngx_decode_base64(key)

Review comment:
       OK, fixed.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org