提交 ea846168 编写于 作者: K Kozlov Dmitry

ppp: write authentication failed message to general log too

上级 e6bd476a
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册