biubiue commented on a change in pull request #6107:
URL: https://github.com/apache/apisix/pull/6107#discussion_r784628597



##########
File path: apisix/ssl/router/radixtree_sni.lua
##########
@@ -104,7 +104,7 @@ local function set_pem_ssl_key(sni, cert, pkey)
     end
 
     local parsed_pkey, err = apisix_ssl.fetch_pkey(sni, pkey)
-    if not parsed_cert then
+    if not parsed_pkey then
         return false, "failed to parse PEM priv key: " .. err

Review comment:
       I can't write unit tests, I'm developing in a window environment




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to