summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/datalink.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-12-10 18:36:53 +0000
committerbrian <brian@FreeBSD.org>1998-12-10 18:36:53 +0000
commitd5964ebf5b382760830373ee70e1a52ffbd193ef (patch)
tree55af3e0a1195111cdbf0a413613aab91ddcffbf5 /usr.sbin/ppp/datalink.c
parentba9233fa15b32ca12a7ce20239c3149b7d185bc0 (diff)
downloadFreeBSD-src-d5964ebf5b382760830373ee70e1a52ffbd193ef.zip
FreeBSD-src-d5964ebf5b382760830373ee70e1a52ffbd193ef.tar.gz
Boy, this was tricky to find:
Remove any dial timer that might be hanging around at datalink_Destroy() time. This timer may be left running after the link is closed (making sure it's not automatically opened again too soon).
Diffstat (limited to 'usr.sbin/ppp/datalink.c')
-rw-r--r--usr.sbin/ppp/datalink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ppp/datalink.c b/usr.sbin/ppp/datalink.c
index ebb48ad..902857c 100644
--- a/usr.sbin/ppp/datalink.c
+++ b/usr.sbin/ppp/datalink.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: datalink.c,v 1.19 1998/08/18 00:53:48 brian Exp $
+ * $Id: datalink.c,v 1.20 1998/10/17 12:28:06 brian Exp $
*/
#include <sys/types.h>
@@ -811,6 +811,7 @@ datalink_Destroy(struct datalink *dl)
}
}
+ timer_Stop(&dl->dial_timer);
result = dl->next;
modem_Destroy(dl->physical);
free(dl->name);
OpenPOWER on IntegriCloud