diff options
| author | 2020-07-29 12:13:45 +0100 | |
|---|---|---|
| committer | 2020-07-29 12:13:45 +0100 | |
| commit | e059f822495b02f73f85a668c152c8233cb66f92 (patch) | |
| tree | 3fc144657d6843f6b07caec69839921bdc962663 /src/inspsocket.cpp | |
| parent | Add a method for creating a regex pattern with included flags. (diff) | |
| parent | Replace all erroneous space indentation with tab indentation. (diff) | |
Merge branch 'insp3' into master.
Diffstat (limited to 'src/inspsocket.cpp')
| -rw-r--r-- | src/inspsocket.cpp | 12 |
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(); |
