From 4f7adb7d8b36353fc752e2f4b4b79dfc9e452afa Mon Sep 17 00:00:00 2001 From: w00t Date: Wed, 27 Aug 2008 19:01:12 +0000 Subject: Fix ident using uninitialised memory, forward-port of r10321. Thanks psychon. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10323 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_ident.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/modules/m_ident.cpp') diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index a29acab5f..835250607 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -103,6 +103,8 @@ class IdentRequestSocket : public EventHandler if (GetFd() == -1) throw ModuleException("Could not create socket"); + done = false; + /* We allocate two of these because sizeof(sockaddr_in6) > sizeof(sockaddr_in) */ sockaddr* s = new sockaddr[2]; sockaddr* addr = new sockaddr[2]; -- cgit v1.2.3