Date: Sun, 19 Feb 2017 20:35:39 +0000 (UTC) From: Kurt Lidl <lidl@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r313965 - head/crypto/openssh Message-ID: <201702192035.v1JKZdie080791@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: lidl Date: Sun Feb 19 20:35:39 2017 New Revision: 313965 URL: https://svnweb.freebsd.org/changeset/base/313965 Log: 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 Modified: head/crypto/openssh/auth.c Modified: head/crypto/openssh/auth.c ============================================================================== --- head/crypto/openssh/auth.c Sun Feb 19 19:56:12 2017 (r313964) +++ head/crypto/openssh/auth.c Sun Feb 19 20:35:39 2017 (r313965) @@ -295,8 +295,8 @@ auth_log(Authctxt *authctxt, int authent 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",
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702192035.v1JKZdie080791>