summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-14 20:09:27 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-14 20:09:27 +0000
commit80c8e91a422250bea57b3edad5f65f4590776d0b (patch)
tree834407bcaf550c2b729e8da504987798b2111e2b /src
parent642b21c7546728f3a2e1505ee44f2e67fea7b05a (diff)
Helps to get the var names right too..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3197 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/socket.cpp2
1 files changed, 1 insertions, 1 deletions
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)))