From: Brendan O'Dea Date: Mon, 13 Dec 2004 05:09:35 +0000 (+0000) Subject: don't trample n X-Git-Tag: 2.2.1-2fdn3.1~19^2^2~1^2~278 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/4577ff0e9b44281ffea13da2307348baff88d0b4 don't trample n --- diff --git a/l2tpns.c b/l2tpns.c index 0654daf..7abbf42 100644 --- a/l2tpns.c +++ b/l2tpns.c @@ -4,7 +4,7 @@ // Copyright (c) 2002 FireBrick (Andrews & Arnold Ltd / Watchfront Ltd) - GPL licenced // vim: sw=8 ts=8 -char const *cvs_id_l2tpns = "$Id: l2tpns.c,v 1.65 2004-12-13 02:27:31 bodea Exp $"; +char const *cvs_id_l2tpns = "$Id: l2tpns.c,v 1.66 2004-12-13 05:09:35 bodea Exp $"; #include #include @@ -2431,9 +2431,9 @@ static void mainloop(void) // incoming IP if (FD_ISSET(tunfd, &r)) { - if ((n = read(tunfd, buf, sizeof(buf))) > 0) + if ((s = read(tunfd, buf, sizeof(buf))) > 0) { - processtun(buf, n); + processtun(buf, s); } else {