aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_ident.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-12-25 21:49:59 +0000
committerGravatar Sadie Powell2022-12-25 22:41:28 +0000
commitb1eb362d8349447b607a9ccb075ba0043bb70947 (patch)
tree6e482446faf550b309e45104424866140bac087b /src/modules/m_ident.cpp
parentRefactor ListenSocket::OnEventHandlerRead slightly. (diff)
Refactor SocketEngine slightly.
- Remove pointless shutdown() wrapper. - Remove pointless bounds checking function. - Make Bind and Listen take an EventHandler instead of a fd. - Add nullability attributes to every method.
Diffstat (limited to 'src/modules/m_ident.cpp')
-rw-r--r--src/modules/m_ident.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp
index 6cb401a2d..15e9a23d8 100644
--- a/src/modules/m_ident.cpp
+++ b/src/modules/m_ident.cpp
@@ -136,7 +136,7 @@ public:
}
/* Attempt to bind (ident requests must come from the ip the query is referring to */
- if (SocketEngine::Bind(GetFd(), bindaddr) < 0)
+ if (SocketEngine::Bind(this, bindaddr) < 0)
{
this->Close();
throw ModuleException(mod, "failed to bind()");