Skip to content

Commit

Permalink
Negated the if condition in set_ca_cert so the log is displayed when …
Browse files Browse the repository at this point in the history
…the valid trusted CA store is not set
  • Loading branch information
drajnoha authored and eloycoto committed Aug 17, 2021
1 parent fc85cb4 commit 6a68206
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gateway/src/apicast/policy/upstream_mtls/upstream_mtls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ end

function _M.set_ca_cert(r, store)
local val = C.ngx_http_apicast_ffi_set_proxy_ca_cert(r, store)
if val == ngx.OK then
if val ~= ngx.OK then
ngx.log(ngx.WARN, "Cannot set a valid trusted CA store")
return
end
Expand Down

0 comments on commit 6a68206

Please sign in to comment.