summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_ident.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp
index dea411cea..15e46b83a 100644
--- a/src/modules/m_ident.cpp
+++ b/src/modules/m_ident.cpp
@@ -113,8 +113,7 @@ class IdentRequestSocket : public EventHandler
age = ServerInstance->Time();
SetFd(socket(user->server_sa.family(), SOCK_STREAM, 0));
-
- if (GetFd() == -1)
+ if (!HasFd())
throw ModuleException("Could not create socket");
done = false;