]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fixes
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 11 Apr 2004 18:07:55 +0000 (18:07 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 11 Apr 2004 18:07:55 +0000 (18:07 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@544 e03df62e-2008-0410-955e-edbf42e46eb7

src/connection.cpp

index 71a0c266a83ae1e61e7e303cc21c87bcba4765ed..609b98880f900435615c49988149a8e00bacafe6 100644 (file)
@@ -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;