]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix output corruption on startup if ports fail to bind, spotted by psychon
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 20 Jul 2008 16:00:17 +0000 (16:00 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 20 Jul 2008 16:00:17 +0000 (16:00 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10054 e03df62e-2008-0410-955e-edbf42e46eb7

src/socket.cpp

index 0e3cf35430cde023f671a41f46dc09b50743ca86..c02345fe931c6af7342bf3dea90c1cb20a9e83e1 100644 (file)
@@ -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++;
                                }