summaryrefslogtreecommitdiff
path: root/src/socket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket.cpp')
-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)))