X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fchap-new.c;h=cf54f57dd8568b8acc07e1bbae1401a29195b927;hp=e5fe16106d85ad80508d5ad070fe4c983dce8856;hb=cf141d059db0db1419e99b99099389c4c2e0ca0f;hpb=98b641cbee0c4489e83320962ddf652eb9070f03 diff --git a/pppd/chap-new.c b/pppd/chap-new.c index e5fe161..cf54f57 100644 --- a/pppd/chap-new.c +++ b/pppd/chap-new.c @@ -28,7 +28,7 @@ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#define RCSID "$Id: chap-new.c,v 1.7 2005/07/10 07:31:26 paulus Exp $" +#define RCSID "$Id: chap-new.c,v 1.8 2005/07/13 10:41:58 paulus Exp $" #include #include @@ -501,6 +501,7 @@ chap_handle_status(struct chap_client_state *cs, int code, int id, auth_withpeer_success(0, PPP_CHAP, cs->digest->code); else { cs->flags |= AUTH_FAILED; + error("CHAP authentication failed"); auth_withpeer_fail(0, PPP_CHAP); } } @@ -552,6 +553,7 @@ chap_protrej(int unit) } if ((cs->flags & (AUTH_STARTED|AUTH_DONE)) == AUTH_STARTED) { cs->flags &= ~AUTH_STARTED; + error("CHAP authentication failed due to protocol-reject"); auth_withpeer_fail(0, PPP_CHAP); } }