summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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 03c979725..836a2b5de 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -209,7 +209,7 @@ std::string InspSocket::GetIP()
char* InspSocket::Read()
{
- if ((fd < 0) || (fd > MAX_DESCRIPTOR))
+ if ((fd < 0) || (fd > MAX_DESCRIPTORS))
return NULL;
int n = recv(this->fd,this->ibuf,sizeof(this->ibuf),0);
if ((n > 0) && (n <= sizeof(this->ibuf)))