diff -Nru ppp-2.4.4.orig/pppd/auth.c ppp-2.4.4/pppd/auth.c --- ppp-2.4.4.orig/pppd/auth.c 2006-08-28 19:53:44.000000000 +0300 +++ ppp-2.4.4/pppd/auth.c 2006-08-28 20:05:44.028957500 +0300 @@ -1164,7 +1164,6 @@ check_maxoctets(arg) void *arg; { - int diff; unsigned int used; update_link_stats(ifunit); @@ -1185,8 +1184,7 @@ used = link_stats.bytes_in+link_stats.bytes_out; break; } - diff = maxoctets - used; - if(diff < 0) { + if (maxoctets <= used) { notice("Traffic limit reached. Limit: %u Used: %u", maxoctets, used); status = EXIT_TRAFFIC_LIMIT; lcp_close(0, "Traffic limit");