From a1c49c827fef2a451bd41606efa3b972ee7338f0 Mon Sep 17 00:00:00 2001 From: Adam- Date: Fri, 9 Apr 2010 19:41:44 +0000 Subject: [PATCH] Fixed a problem with binding to certian IPs git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2878 5417fbe8-f217-4b02-8779-1006273d7864 --- src/sockets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sockets.cpp b/src/sockets.cpp index 58370b4f8..b5d058fb2 100644 --- a/src/sockets.cpp +++ b/src/sockets.cpp @@ -52,7 +52,7 @@ Socket::Socket(const std::string &nTargetHost, int nPort, const std::string &nBi Bound = bind(Sock, reinterpret_cast(&bindaddr), sizeof(bindaddr)); } - if (!Bound) + if (Bound < 0) { if (IPv6) {