ipppd/auth.c: correct mistake in local-to-remote authentication

http://bugs.debian.org/348943

Signed-off-by: Karsten Keil
This commit is contained in:
Herbert Xu 2012-03-29 21:33:13 +02:00 committed by Rolf Leggewie
parent b5f6de4dfb
commit b9903cf51c
1 changed files with 2 additions and 2 deletions

View File

@ -596,10 +596,10 @@ void check_auth_options()
wo->neg_upap = 0;
#ifdef RADIUS
if (ao->neg_chap && !ask_passwd && !fdpasswd &&
!have_chap_secret(our_name, remote_name) && !useradius ) {
!have_chap_secret(user, remote_name) && !useradius ) {
#else
if (ao->neg_chap && !ask_passwd && !fdpasswd &&
!have_chap_secret(our_name, remote_name)) {
!have_chap_secret(user, remote_name)) {
#endif
syslog(LOG_INFO,"info: no CHAP secret entry for this user!\n");
ao->neg_chap = 0;