summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-07-20 16:00:17 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-07-20 16:00:17 +0000
commit831e7c4646000b7728ca41e4be5bb3f32b374140 (patch)
treef46d6a33b89c87edf7dac03567d6d0eaa8441f56 /src
parent4c286655e1b930908fd02681ac00e172156e737c (diff)
Fix output corruption on startup if ports fail to bind, spotted by psychon
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10054 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/socket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index 0e3cf3543..c02345fe9 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -355,7 +355,7 @@ int InspIRCd::BindPorts(bool, int &ports_found, FailedPortList &failed_ports)
}
else
{
- failed_ports.push_back(std::make_pair(Addr + portno, strerror(errno)));
+ failed_ports.push_back(std::make_pair((*Addr ? Addr : "*") + std::string(":") + ConvToStr(portno), strerror(errno)));
}
ports_found++;
}