diff options
author | Paul Mackerras <paulus@samba.org> | 1999-09-11 12:09:00 +0000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 1999-09-11 12:09:00 +0000 |
commit | 07de73a331240b97d915c1851431a743449dd0f4 (patch) | |
tree | 0bd45dd65a245f2adf1b398973e89261f30d5338 /pppd/upap.c | |
parent | fc8a2a1cb1a141e5c1d9c9f0580e4f97271f9734 (diff) | |
download | ppp-07de73a331240b97d915c1851431a743449dd0f4.tar.gz |
Add plugin support plus an initial selection of hooks.
Add the allow-ip option as a better way of specifying what
IP addresses an unauthenticated peer may use.
Translate unprintable chars in PAP user/password into visible form.
Clean up the processing of extra options in the secrets files.
Add ktune/noktune options to enable/disable changing kernel settings.
Diffstat (limited to 'pppd/upap.c')
-rw-r--r-- | pppd/upap.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pppd/upap.c b/pppd/upap.c index 6bf8dec..5cf9c68 100644 --- a/pppd/upap.c +++ b/pppd/upap.c @@ -17,7 +17,7 @@ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -#define RCSID "$Id: upap.c,v 1.20 1999/08/24 05:29:26 paulus Exp $" +#define RCSID "$Id: upap.c,v 1.21 1999/09/11 12:09:00 paulus Exp $" /* * TODO: @@ -395,8 +395,11 @@ upap_rauthreq(u, inp, id, len) * Check the username and password given. */ retcode = check_passwd(u->us_unit, ruser, ruserlen, rpasswd, - rpasswdlen, &msg, &msglen); + rpasswdlen, &msg); BZERO(rpasswd, rpasswdlen); + msglen = strlen(msg); + if (msglen > 255) + msglen = 255; upap_sresp(u, retcode, id, msg, msglen); |