summaryrefslogtreecommitdiff
path: root/include/modules/ssl.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/modules/ssl.h')
-rw-r--r--include/modules/ssl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/modules/ssl.h b/include/modules/ssl.h
index a79dcc9ef..a45121537 100644
--- a/include/modules/ssl.h
+++ b/include/modules/ssl.h
@@ -22,6 +22,7 @@
#include <map>
#include <string>
+#include "iohook.h"
/** ssl_cert is a class which abstracts SSL certificate
* and key information.
@@ -138,7 +139,7 @@ struct SocketCertificateRequest : public Request
ssl_cert* cert;
SocketCertificateRequest(StreamSocket* ss, Module* Me)
- : Request(Me, ss->GetIOHook(), "GET_SSL_CERT"), sock(ss), cert(NULL)
+ : Request(Me, (ss->GetIOHook() ? (Module*)ss->GetIOHook()->creator : NULL), "GET_SSL_CERT"), sock(ss), cert(NULL)
{
Send();
}