diff options
author | brian <brian@FreeBSD.org> | 1999-11-09 23:30:59 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-11-09 23:30:59 +0000 |
commit | d8b9f4c9fa7e2ab435fbd84a0584f941947e01fc (patch) | |
tree | ae1e05abc84ab38f3bae25a4d970fe487ab720da | |
parent | f87b3817a2d1c9cce4910b3a14e946899a2632d7 (diff) | |
download | FreeBSD-src-d8b9f4c9fa7e2ab435fbd84a0584f941947e01fc.zip FreeBSD-src-d8b9f4c9fa7e2ab435fbd84a0584f941947e01fc.tar.gz |
If dev->connected is already set to CARRIER_OK in ether_AwaitCarrier,
don't go and set it to CARRIER_LOST !
-rw-r--r-- | usr.sbin/ppp/ether.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/ether.c b/usr.sbin/ppp/ether.c index 175ba79..da20f9f 100644 --- a/usr.sbin/ppp/ether.c +++ b/usr.sbin/ppp/ether.c @@ -267,7 +267,7 @@ ether_AwaitCarrier(struct physical *p) { struct etherdevice *dev = device2ether(p->handler); - if (!dev->timeout--) + if (dev->connected != CARRIER_OK && !dev->timeout--) dev->connected = CARRIER_LOST; else if (dev->connected == CARRIER_PENDING) ether_MessageIn(dev); |