diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-02-14 09:59:57 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-02-14 09:59:57 +0500 |
commit | 3ca0b28b545263eae0f4ba2a0425c6c0f5b02538 (patch) | |
tree | 1eac637d0c8c79c4c21b7b0e1e4022e8f5829dae /plugins/mod_tls.lua | |
parent | 88c9871069014e6e4ac1a0c78593feb708a1e3b3 (diff) | |
download | prosody-3ca0b28b545263eae0f4ba2a0425c6c0f5b02538.tar.gz prosody-3ca0b28b545263eae0f4ba2a0425c6c0f5b02538.zip |
mod_tls: Fixed traceback during S2S TLS (nil global access).
Diffstat (limited to 'plugins/mod_tls.lua')
-rw-r--r-- | plugins/mod_tls.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_tls.lua b/plugins/mod_tls.lua index 8f688d61..67d8d5d7 100644 --- a/plugins/mod_tls.lua +++ b/plugins/mod_tls.lua @@ -28,7 +28,7 @@ local function can_do_tls(session) if session.type == "c2s_unauthed" then return session.username and session.conn.starttls and host.ssl_ctx_in; elseif session.type == "s2sin_unauthed" then - return origin.to_host and origin.conn.starttls and host.ssl_ctx_in; + return session.to_host and session.conn.starttls and host.ssl_ctx_in; end return false; end |