summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-03-23 19:14:45 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-03-23 19:14:45 +0000
commitc61b20a3107c707be48edcba645f8ac443a0a13e (patch)
tree75e18bf269e83cc779a39f9a6bb028ea7ff7dd1b /src/modules
parent4a519ed2014d4f05cfc4710f125e32ad6230cbc4 (diff)
Tweak some stuff about
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6701 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_ident.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp
index 3fb61e345..25d7d4414 100644
--- a/src/modules/m_ident.cpp
+++ b/src/modules/m_ident.cpp
@@ -140,8 +140,8 @@ class RFC1413 : public InspSocket
{
if (u && (Instance->SE->GetRef(ufd) == u))
{
- sockaddr* sock_us = new sockaddr;
- sockaddr* sock_them = new sockaddr;
+ sockaddr* sock_us = new sockaddr[2];
+ sockaddr* sock_them = new sockaddr[2];
bool success = false;
uslen = sizeof(sockaddr_in);
themlen = sizeof(sockaddr_in);
@@ -160,8 +160,8 @@ class RFC1413 : public InspSocket
if (success)
{
Instance->Log(DEBUG,"BUG: Ident: failed to get socket names");
- delete sock_us;
- delete sock_them;
+ delete[] sock_us;
+ delete[] sock_them;
return false;
}
else
@@ -176,8 +176,8 @@ class RFC1413 : public InspSocket
snprintf(ident_request,127,"%d,%d\r\n",ntohs(((sockaddr_in*)sock_them)->sin_port),ntohs(((sockaddr_in*)sock_us)->sin_port));
#endif
this->Write(ident_request);
- delete sock_us;
- delete sock_them;
+ delete[] sock_us;
+ delete[] sock_them;
return true;
}
}