Changeset

2635:e79057cf2538

mod_tls: Fixed traceback during S2S TLS (nil global access).
author Waqas Hussain <waqas20@gmail.com>
date Sun, 14 Feb 2010 09:59:57 +0500
parents 2634:e486aca8c5d1
children 2636:d2805ad5b736
files plugins/mod_tls.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_tls.lua	Sat Feb 13 19:35:12 2010 +0000
+++ b/plugins/mod_tls.lua	Sun Feb 14 09:59:57 2010 +0500
@@ -28,7 +28,7 @@
 	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