aboutsummaryrefslogtreecommitdiffstats
path: root/include/modules
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-07-29 12:13:45 +0100
committerGravatar Sadie Powell2020-07-29 12:13:45 +0100
commite059f822495b02f73f85a668c152c8233cb66f92 (patch)
tree3fc144657d6843f6b07caec69839921bdc962663 /include/modules
parentAdd a method for creating a regex pattern with included flags. (diff)
parentReplace all erroneous space indentation with tab indentation. (diff)
downloadinspircd++-e059f822495b02f73f85a668c152c8233cb66f92.tar.gz
inspircd++-e059f822495b02f73f85a668c152c8233cb66f92.tar.bz2
inspircd++-e059f822495b02f73f85a668c152c8233cb66f92.zip
Merge branch 'insp3' into master.
Diffstat (limited to 'include/modules')
-rw-r--r--include/modules/ssl.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/modules/ssl.h b/include/modules/ssl.h
index bbee38867..b72a518cb 100644
--- a/include/modules/ssl.h
+++ b/include/modules/ssl.h
@@ -187,9 +187,10 @@ class SSLIOHook : public IOHook
public:
static SSLIOHook* IsSSL(StreamSocket* sock)
{
- IOHook* const iohook = sock->GetIOHook();
- if ((iohook) && ((iohook->prov->type == IOHookProvider::IOH_SSL)))
- return static_cast<SSLIOHook*>(iohook);
+ IOHook* const lasthook = sock->GetLastHook();
+ if (lasthook && (lasthook->prov->type == IOHookProvider::IOH_SSL))
+ return static_cast<SSLIOHook*>(lasthook);
+
return NULL;
}