summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1996-05-13 07:20:11 +0000
committerphk <phk@FreeBSD.org>1996-05-13 07:20:11 +0000
commitdc61083d98bdc51b195a310df6a0b84b55b4835f (patch)
tree2a60f5474194c47e36f810bc312e61236be551fc /usr.sbin/ppp
parent9081f266cf060a63dc5413cc5d99792af213fed9 (diff)
downloadFreeBSD-src-dc61083d98bdc51b195a310df6a0b84b55b4835f.zip
FreeBSD-src-dc61083d98bdc51b195a310df6a0b84b55b4835f.tar.gz
PR: bin/1194: PPP server port not initialized
Latest round of changes omitted initialization of tunnel device unit variable. Submitted by: John Capo <jc@irbs.com>
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/os.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ppp/os.c b/usr.sbin/ppp/os.c
index f42318d..9d0c930 100644
--- a/usr.sbin/ppp/os.c
+++ b/usr.sbin/ppp/os.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: os.c,v 1.4 1996/01/11 17:48:55 phk Exp $
+ * $Id: os.c,v 1.5 1996/05/11 20:48:37 phk Exp $
*
*/
#include "fsm.h"
@@ -285,6 +285,7 @@ int *ptun;
fprintf(stderr, "No tunnel device is available.\n");
return(-1);
}
+ *ptun = unit;
/*
* At first, name the interface.
OpenPOWER on IntegriCloud