]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/auth.c
Merge pull request #169 from SimonTate/fix-pppoe-empty-password
[ppp.git] / pppd / auth.c
index 590a265eda7b3cb646493d8fbc812a5a3ed25162..3641b6ea701f11af845331926d308c366103a4d5 100644 (file)
 #include "pathnames.h"
 #include "session.h"
 
-static const char rcsid[] = RCSID;
 
 /* Bits in scan_authfile return value */
 #define NONWILD_SERVER 1
@@ -1339,7 +1338,7 @@ auth_reset(unit)
     hadchap = -1;
     ao->neg_upap = !refuse_pap && (passwd[0] != 0 || get_pap_passwd(NULL));
     ao->neg_chap = (!refuse_chap || !refuse_mschap || !refuse_mschap_v2)
-       && (passwd[0] != 0 ||
+       && ((passwd[0] != 0 || explicit_passwd) ||
            (hadchap = have_chap_secret(user, (explicit_remote? remote_name:
                                               NULL), 0, NULL)));
     ao->neg_eap = !refuse_eap && (