From 9b5e4bcdc6e25f18d20200af78df94d695e428ac Mon Sep 17 00:00:00 2001 From: Frank Cusack Date: Sat, 12 Oct 2002 02:30:21 +0000 Subject: [PATCH] Log calling number failed authorization at warn instead of error, to be consistent with chap/pap failed authentication log level. (And it doesn't merit "error".) --- pppd/chap.c | 4 ++-- pppd/main.c | 4 ++-- pppd/upap.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pppd/chap.c b/pppd/chap.c index e47d52f..a63dde8 100644 --- a/pppd/chap.c +++ b/pppd/chap.c @@ -33,7 +33,7 @@ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -#define RCSID "$Id: chap.c,v 1.35 2002/10/12 01:28:05 fcusack Exp $" +#define RCSID "$Id: chap.c,v 1.36 2002/10/12 02:30:21 fcusack Exp $" /* * TODO: @@ -606,7 +606,7 @@ ChapReceiveResponse(cstate, inp, id, len) if (!auth_number()) { /* We do not want to leak info about the chap result. */ code = CHAP_FAILURE; /* XXX exit value will be "wrong" */ - error("calling number %q is not authorized", remote_number); + warn("calling number %q is not authorized", remote_number); } } diff --git a/pppd/main.c b/pppd/main.c index cc329b1..b4271f8 100644 --- a/pppd/main.c +++ b/pppd/main.c @@ -17,7 +17,7 @@ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -#define RCSID "$Id: main.c,v 1.115 2002/10/12 01:28:05 fcusack Exp $" +#define RCSID "$Id: main.c,v 1.116 2002/10/12 02:30:21 fcusack Exp $" #include #include @@ -366,7 +366,7 @@ main(argc, argv) * Early check for remote number authorization. */ if (!auth_number()) { - error("calling number %q is not authorized", remote_number); + warn("calling number %q is not authorized", remote_number); exit(EXIT_CNID_AUTH_FAILED); } diff --git a/pppd/upap.c b/pppd/upap.c index 50a78a2..135db0a 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.27 2002/10/12 01:28:05 fcusack Exp $" +#define RCSID "$Id: upap.c,v 1.28 2002/10/12 02:30:21 fcusack Exp $" /* * TODO: @@ -412,7 +412,7 @@ upap_rauthreq(u, inp, id, len) if (!auth_number()) { /* We do not want to leak info about the pap result. */ retcode = UPAP_AUTHNAK; /* XXX exit value will be "wrong" */ - error("calling number %q is not authorized", remote_number); + warn("calling number %q is not authorized", remote_number); } } -- 2.39.2