1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-04 09:09:56 +00:00

openssh: use global state for blacklist in grace_alarm_handler

Obtained from:	security/openssh-portable
Fixes:		19261079b7 ("openssh: update to OpenSSH v8.7p1")
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste 2021-09-16 14:08:27 -04:00
parent 7cf62c68c0
commit adb56e58e8

View File

@ -385,7 +385,7 @@ grace_alarm_handler(int sig)
kill(0, SIGTERM);
}
BLACKLIST_NOTIFY(NULL, BLACKLIST_AUTH_FAIL, "ssh");
BLACKLIST_NOTIFY(the_active_state, BLACKLIST_AUTH_FAIL, "ssh");
/* Log error and exit. */
if (use_privsep && pmonitor != NULL && pmonitor->m_pid <= 0)