summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordtucker <dtucker@openbsd.org>2005-03-14 11:44:42 +0000
committerdtucker <dtucker@openbsd.org>2005-03-14 11:44:42 +0000
commitf3b0df8584565fcd9cbd42a169b6a3c2048c0466 (patch)
treeb75b4a94d2d68df038e20edd787efad667cf195c
parentdocument WANTLIB absolute paths. (diff)
downloadwireguard-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.c5
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();
}