diff options
author | 2005-03-14 11:44:42 +0000 | |
---|---|---|
committer | 2005-03-14 11:44:42 +0000 | |
commit | f3b0df8584565fcd9cbd42a169b6a3c2048c0466 (patch) | |
tree | b75b4a94d2d68df038e20edd787efad667cf195c | |
parent | document WANTLIB absolute paths. (diff) | |
download | wireguard-openbsd-f3b0df8584565fcd9cbd42a169b6a3c2048c0466.tar.xz wireguard-openbsd-f3b0df8584565fcd9cbd42a169b6a3c2048c0466.zip |
Populate host for log message for logins denied by AllowUsers and DenyUsers.
(bz #999); ok markus@
-rw-r--r-- | usr.bin/ssh/auth.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/auth.c b/usr.bin/ssh/auth.c index 1b64b8252ed..315fae40a06 100644 --- a/usr.bin/ssh/auth.c +++ b/usr.bin/ssh/auth.c @@ -23,7 +23,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: auth.c,v 1.57 2005/01/22 08:17:59 dtucker Exp $"); +RCSID("$OpenBSD: auth.c,v 1.58 2005/03/14 11:44:42 dtucker Exp $"); #include <libgen.h> @@ -89,7 +89,8 @@ allowed_user(struct passwd * pw) return 0; } - if (options.num_deny_users > 0 || options.num_allow_users > 0) { + if (options.num_deny_users > 0 || options.num_allow_users > 0 || + options.num_deny_groups > 0 || options.num_allow_groups > 0) { hostname = get_canonical_hostname(options.use_dns); ipaddr = get_remote_ipaddr(); } |