summaryrefslogtreecommitdiff
path: root/include/inspsocket.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/inspsocket.h')
-rw-r--r--include/inspsocket.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/inspsocket.h b/include/inspsocket.h
index 3e5c75235..8172338ac 100644
--- a/include/inspsocket.h
+++ b/include/inspsocket.h
@@ -94,7 +94,7 @@ class CoreExport SocketTimeout : public Timer
class CoreExport StreamSocket : public EventHandler
{
/** Module that handles raw I/O for this socket, or NULL */
- Module *IOHook;
+ reference<Module> IOHook;
/** Private send queue. Note that individual strings may be shared
*/
std::deque<std::string> sendq;
@@ -105,7 +105,7 @@ class CoreExport StreamSocket : public EventHandler
protected:
std::string recvq;
public:
- StreamSocket() : IOHook(NULL), sendq_len(0) {}
+ StreamSocket() : sendq_len(0) {}
inline Module* GetIOHook() { return IOHook; }
inline void AddIOHook(Module* m) { IOHook = m; }
inline void DelIOHook() { IOHook = NULL; }