diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-08-27 19:01:12 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-08-27 19:01:12 +0000 |
commit | 4f7adb7d8b36353fc752e2f4b4b79dfc9e452afa (patch) | |
tree | 39cdf97cf27306671cba90c14e4879e3223ea36e | |
parent | e471f12576b6b6d1a1c7d2e856998b47735d2037 (diff) |
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
-rw-r--r-- | src/modules/m_ident.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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]; |