summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-11 18:02:28 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-11 18:02:28 +0000
commita83d9d2d675054fc9fb499255511cdd83abbff96 (patch)
tree078076f9c0796df3cd200909eb80c168540ebe71 /src
parent550ca03638ce77f59f3af4b768fa077ae11a084d (diff)
Fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@542 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/connection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/connection.cpp b/src/connection.cpp
index 8edad9590..3c743d233 100644
--- a/src/connection.cpp
+++ b/src/connection.cpp
@@ -304,7 +304,7 @@ bool connection::RecvPacket(char *message, char* host, int &prt, long &theirkey)
//int recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlen);
if (recvfrom(fd,&p,sizeof(p),0,(sockaddr*)&host_address,&host_address_size)<0)
{
- if (this->buffer.size())
+ if (this->buffer.size() != -1)
{
log(DEBUG,"Fetching a buffered packet");
@@ -348,7 +348,7 @@ bool connection::RecvPacket(char *message, char* host, int &prt, long &theirkey)
prt = ntohs(host_address.sin_port); // the port we received it on
SendACK(host,prt,p.id);
- if (this->buffer.size())
+ if (this->buffer.size() != -1)
{
log(DEBUG,"Fetching a buffered packet");
packet_buf pb;