diff options
| author | 2020-07-29 12:13:45 +0100 | |
|---|---|---|
| committer | 2020-07-29 12:13:45 +0100 | |
| commit | e059f822495b02f73f85a668c152c8233cb66f92 (patch) | |
| tree | 3fc144657d6843f6b07caec69839921bdc962663 /include/modules | |
| parent | Add a method for creating a regex pattern with included flags. (diff) | |
| parent | Replace all erroneous space indentation with tab indentation. (diff) | |
| download | inspircd++-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.h | 7 |
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; } |
