mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
Only notify blacklistd for successful logins in auth.c
Reported by: Rick Adams Reviewed by: des MFC after: 3 days Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
d9720179fd
commit
5057f65606
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=313965
|
@ -295,8 +295,8 @@ auth_log(Authctxt *authctxt, int authenticated, int partial,
|
|||
authmsg = "Partial";
|
||||
else {
|
||||
authmsg = authenticated ? "Accepted" : "Failed";
|
||||
BLACKLIST_NOTIFY(authenticated ?
|
||||
BLACKLIST_AUTH_OK : BLACKLIST_AUTH_FAIL);
|
||||
if (authenticated)
|
||||
BLACKLIST_NOTIFY(BLACKLIST_AUTH_OK);
|
||||
}
|
||||
|
||||
authlog("%s %s%s%s for %s%.100s from %.200s port %d %s%s%s",
|
||||
|
|
Loading…
Reference in a new issue