X-Git-Url: http://git.sameswireless.fr/l2tpns.git/blobdiff_plain/4d4030929ee9bea1908e895f9e8d07a8c343b581..caec470497fae65433778ce3bfb9f045fe040e2f:/l2tpns.c?ds=inline diff --git a/l2tpns.c b/l2tpns.c index cf66730..f2eea31 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.67 2004/12/13 05:20:39 bodea Exp $"; #include #include @@ -2211,7 +2211,7 @@ static int regular_cleanups(void) else if (next_shut_acct <= TIME) { // Dump accounting data for shutdown sessions - next_acct = TIME + ACCT_SHUT_TIME; + next_shut_acct = TIME + ACCT_SHUT_TIME; if (shut_acct_n) dump_acct_info(0); } @@ -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 {