aboutsummaryrefslogtreecommitdiffstats
path: root/util/openssl.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-02-25 15:40:35 +0100
committerKim Alvefur <zash@zash.se>2016-02-25 15:40:35 +0100
commite8ae582f9096da3eb413f4b2dd31ac1a494f361c (patch)
tree510af1472114eea8f6d102eddf1506f3b8b7dcfa /util/openssl.lua
parent9a7bce4946a4a302905bdccd23ce59dc245803e8 (diff)
parent14ddd031ce06a21be7aae239b95cb393b3fb7f10 (diff)
downloadprosody-e8ae582f9096da3eb413f4b2dd31ac1a494f361c.tar.gz
prosody-e8ae582f9096da3eb413f4b2dd31ac1a494f361c.zip
Merge 0.10->trunk
Diffstat (limited to 'util/openssl.lua')
-rw-r--r--util/openssl.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/util/openssl.lua b/util/openssl.lua
index 12e49eac..757259f6 100644
--- a/util/openssl.lua
+++ b/util/openssl.lua
@@ -70,8 +70,7 @@ function ssl_config:serialize()
end
end
elseif k == "distinguished_name" then
- for i=1, #DN_order do
- local k = DN_order[i]
+ for i, k in ipairs(t[1] and t or DN_order) do
local v = t[k];
if v then
s = s .. ("%s = %s\n"):format(k, v);