summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/chap.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ppp/chap.c')
-rw-r--r--usr.sbin/ppp/chap.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.sbin/ppp/chap.c b/usr.sbin/ppp/chap.c
index 3187b66b37b..2e5c9c62df9 100644
--- a/usr.sbin/ppp/chap.c
+++ b/usr.sbin/ppp/chap.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: chap.c,v 1.3 1997/12/24 09:30:24 brian Exp $
+ * $Id: chap.c,v 1.4 1998/02/19 02:02:45 brian Exp $
*
* TODO:
*/
@@ -56,6 +56,7 @@
#include "loadalias.h"
#include "vars.h"
#include "auth.h"
+#include "id.h"
static const char *chapcodes[] = {
"???", "CHALLENGE", "RESPONSE", "SUCCESS", "FAILURE"
@@ -232,11 +233,9 @@ RecvChapTalk(struct fsmheader *chp, struct mbuf *bp)
struct utmp ut;
memset(&ut, 0, sizeof ut);
time(&ut.ut_time);
- strncpy(ut.ut_name, name, sizeof ut.ut_name - 1);
+ strncpy(ut.ut_name, name, sizeof ut.ut_name);
strncpy(ut.ut_line, VarBaseDevice, sizeof ut.ut_line - 1);
- if (logout(ut.ut_line))
- logwtmp(ut.ut_line, "", "");
- login(&ut);
+ ID0login(&ut);
Utmp = 1;
}
NewPhase(PHASE_NETWORK);