zero is a valid fd

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@605 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2006-02-06 01:55:49 +00:00
parent eedaae66f0
commit b88d493616

View File

@@ -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( "" );