From: brain Date: Sun, 11 Apr 2004 18:07:55 +0000 (+0000) Subject: Fixes X-Git-Tag: v2.0.23~11043 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=1fe5239a34ae86d08a1dfcde7ed1554d8faf4aa3;hp=73ccb31028433de49bb49d646e35653ab3c56db0;p=user%2Fhenk%2Fcode%2Finspircd.git Fixes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@544 e03df62e-2008-0410-955e-edbf42e46eb7 --- diff --git a/src/connection.cpp b/src/connection.cpp index 71a0c266a..609b98880 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -305,10 +305,9 @@ 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.length()) + if (buffer.size()) { - log(DEBUG,"Fetching a buffered packet"); - + log(DEBUG,"Fetching a buffered packet size %d",buffer.size()); strcpy(message,buffer[0].p.data); theirkey = buffer[0].p.key; strcpy(host,buffer[0].host); @@ -349,9 +348,9 @@ 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.length()) + if (buffer.size()) { - log(DEBUG,"Fetching a buffered packet"); + log(DEBUG,"Fetching a buffered packet size %d",buffer.size()); packet_buf pb; pb.p.id = p.id; pb.p.key = p.key;