diff options
| author | 2006-02-14 20:09:27 +0000 | |
|---|---|---|
| committer | 2006-02-14 20:09:27 +0000 | |
| commit | 80c8e91a422250bea57b3edad5f65f4590776d0b (patch) | |
| tree | 834407bcaf550c2b729e8da504987798b2111e2b /src/socket.cpp | |
| parent | Error checking for out of range buffer reads (this shouldnt happen, read is b... (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/socket.cpp')
| -rw-r--r-- | src/socket.cpp | 2 |
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))) |
