X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fmeta.c;h=93bc48b37712619caa09fed6dc9887d9f3404001;hp=dde0e2a4fce9b2c2130c21f32ac7be15114ec21d;hb=7926a156e5b118d06295228e57de0cc9de0433b4;hpb=ffb7327c20952cefcb5578e40f9802295172c5c2 diff --git a/src/meta.c b/src/meta.c index dde0e2a4..93bc48b3 100644 --- a/src/meta.c +++ b/src/meta.c @@ -1,7 +1,7 @@ /* meta.c -- handle the meta communication - Copyright (C) 2000-2003 Guus Sliepen , - 2000-2003 Ivo Timmermans + Copyright (C) 2000-2004 Guus Sliepen , + 2000-2004 Ivo Timmermans This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: meta.c,v 1.1.2.47 2003/10/11 14:18:52 guus Exp $ + $Id$ */ #include "system.h" @@ -150,7 +150,7 @@ bool receive_meta(connection_t *c) receive_tcppacket(c, c->buffer, c->tcplen); c->buflen -= c->tcplen; - lenin -= c->tcplen; + lenin -= c->tcplen - oldlen; memmove(c->buffer, c->buffer + c->tcplen, c->buflen); oldlen = 0; c->tcplen = 0;