summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_xmlsocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_xmlsocket.cpp b/src/modules/m_xmlsocket.cpp
index 821a8363b..ea8485172 100644
--- a/src/modules/m_xmlsocket.cpp
+++ b/src/modules/m_xmlsocket.cpp
@@ -66,7 +66,7 @@ class ModuleXMLSocket : public Module
{
listenports.push_back(addr + ":" + ConvToStr(portno));
for (size_t j = 0; j < ServerInstance->Config->ports.size(); j++)
- if ((ServerInstance->Config->ports[i]->GetPort() == portno) && (ServerInstance->Config->ports[i]->GetIP() == addr))
+ if ((ServerInstance->Config->ports[j]->GetPort() == portno) && (ServerInstance->Config->ports[j]->GetIP() == addr))
ServerInstance->Config->ports[j]->SetDescription("xml");
}
catch (ModuleException &e)