From 80c8e91a422250bea57b3edad5f65f4590776d0b Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 14 Feb 2006 20:09:27 +0000 Subject: [PATCH] Helps to get the var names right too.. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3197 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socket.cpp b/src/socket.cpp index 4528090d4..03c979725 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -209,7 +209,7 @@ std::string InspSocket::GetIP() char* InspSocket::Read() { - if ((n < 0) || (n > MAX_DESCRIPTOR)) + if ((fd < 0) || (fd > MAX_DESCRIPTOR)) return NULL; int n = recv(this->fd,this->ibuf,sizeof(this->ibuf),0); if ((n > 0) && (n <= sizeof(this->ibuf))) -- 2.39.5