From 1a56baf6022b14f35a2fc1fe5af3fe3dfdba7408 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Thu, 19 Mar 1998 22:25:44 +0000 Subject: [PATCH] Don't print negative times in `show timeout' when the link is up with a timeout of 0. --- usr.sbin/ppp/bundle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/ppp/bundle.c b/usr.sbin/ppp/bundle.c index 30e35e711f5d..951e3ab3d2b9 100644 --- a/usr.sbin/ppp/bundle.c +++ b/usr.sbin/ppp/bundle.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: bundle.c,v 1.1.2.28 1998/03/16 22:53:29 brian Exp $ + * $Id: bundle.c,v 1.1.2.29 1998/03/18 23:15:29 brian Exp $ */ #include @@ -794,7 +794,7 @@ bundle_IdleTimeout(void *v) void bundle_StartIdleTimer(struct bundle *bundle) { - if (!(mode & (MODE_DEDICATED | MODE_DDIAL))) { + if (!(mode & (MODE_DEDICATED | MODE_DDIAL)) && bundle->cfg.idle_timeout) { StopTimer(&bundle->idle.timer); bundle->idle.timer.func = bundle_IdleTimeout; bundle->idle.timer.load = bundle->cfg.idle_timeout * SECTICKS;