aboutsummaryrefslogtreecommitdiff
path: root/src/inspsocket.cpp
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 /src/inspsocket.cpp
parentAdd a method for creating a regex pattern with included flags. (diff)
parentReplace all erroneous space indentation with tab indentation. (diff)
Merge branch 'insp3' into master.
Diffstat (limited to 'src/inspsocket.cpp')
-rw-r--r--src/inspsocket.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp
index f0f804fff..e20f9a3b2 100644
--- a/src/inspsocket.cpp
+++ b/src/inspsocket.cpp
@@ -495,6 +495,18 @@ IOHook* StreamSocket::GetModHook(Module* mod) const
return NULL;
}
+IOHook* StreamSocket::GetLastHook() const
+{
+ IOHook* curr = GetIOHook();
+ IOHook* last = curr;
+
+ for (; curr; curr = GetNextHook(curr))
+ last = curr;
+
+ return last;
+}
+
+
void StreamSocket::AddIOHook(IOHook* newhook)
{
IOHook* curr = GetIOHook();