[openssh-commits] [openssh] 02/05: upstream commit
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri Dec 16 13:16:52 AEDT 2016
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit fe06b68f824f8f55670442fb31f2c03526dd326c
Author: dtucker at openbsd.org <dtucker at openbsd.org>
Date: Thu Dec 15 21:29:05 2016 +0000
upstream commit
Add missing braces in DenyUsers code. Patch from zev at
bewilderbeest.net, ok deraadt@
Upstream-ID: d747ace338dcf943b077925f90f85f789714b54e
---
auth.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/auth.c b/auth.c
index 2de2db4..6ee6116 100644
--- a/auth.c
+++ b/auth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth.c,v 1.118 2016/11/08 22:04:34 djm Exp $ */
+/* $OpenBSD: auth.c,v 1.119 2016/12/15 21:29:05 dtucker Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
*
@@ -192,7 +192,7 @@ allowed_user(struct passwd * pw)
/* Return false if user is listed in DenyUsers */
if (options.num_deny_users > 0) {
- for (i = 0; i < options.num_deny_users; i++)
+ for (i = 0; i < options.num_deny_users; i++) {
r = match_user(pw->pw_name, hostname, ipaddr,
options.deny_users[i]);
if (r < 0) {
@@ -204,6 +204,7 @@ allowed_user(struct passwd * pw)
pw->pw_name, hostname);
return 0;
}
+ }
}
/* Return false if AllowUsers isn't empty and user isn't listed there */
if (options.num_allow_users > 0) {
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list