From b88d493616355a4fb8ecb4f698d655e5c4e21889 Mon Sep 17 00:00:00 2001 From: prozacx Date: Mon, 6 Feb 2006 01:55:49 +0000 Subject: [PATCH] zero is a valid fd git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@605 726aef4b-f618-498e-8847-2d620e286838 --- Csocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Csocket.cpp b/Csocket.cpp index 9d22022e..52a62b37 100644 --- a/Csocket.cpp +++ b/Csocket.cpp @@ -1191,7 +1191,7 @@ CS_STRING Csock::GetRemoteIP() int iSock = GetSock(); - if ( iSock <= 0 ) + if ( iSock < 0 ) { std::cerr << "What the hell is wrong with my fd!?" << endl; return( "" );