diff options
author | Kozlov Dmitry <dima@server> | 2011-04-29 12:57:39 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2011-04-29 12:57:39 +0400 |
commit | ea846168bd9ae8ce6eca106b755e890867f5eced (patch) | |
tree | ad1268c0193fd7cb94ec589b55ad480d17ad4a71 /accel-pppd/ppp/ppp_auth.c | |
parent | e6bd476ac97b342d201d5eb436b9a6c43e7f135e (diff) | |
download | accel-ppp-ea846168bd9ae8ce6eca106b755e890867f5eced.tar.gz accel-ppp-ea846168bd9ae8ce6eca106b755e890867f5eced.zip |
ppp: write authentication failed message to general log too
Diffstat (limited to 'accel-pppd/ppp/ppp_auth.c')
-rw-r--r-- | accel-pppd/ppp/ppp_auth.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/accel-pppd/ppp/ppp_auth.c b/accel-pppd/ppp/ppp_auth.c index e58b9a5..92d1f9c 100644 --- a/accel-pppd/ppp/ppp_auth.c +++ b/accel-pppd/ppp/ppp_auth.c @@ -339,9 +339,10 @@ int __export ppp_auth_successed(struct ppp_t *ppp, char *username) void __export ppp_auth_failed(struct ppp_t *ppp, const char *username) { - if (username) + if (username) { log_ppp_info1("%s: authentication failed\n", username); - else + log_info1("%s: authentication failed\n", username); + } else log_ppp_info1("authentication failed\n"); ppp_terminate(ppp, TERM_AUTH_ERROR, 0); } |