diff options
author | 2016-12-15 21:29:05 +0000 | |
---|---|---|
committer | 2016-12-15 21:29:05 +0000 | |
commit | 1cd0d2387698208d18d3d9dffee6f7a475784505 (patch) | |
tree | f614d0a61430bad130d56e1c2c670ea4f9cbb908 /usr.bin/ssh/auth.c | |
parent | Fix text in error message. Patch from zev at bewilderbeest.net. (diff) | |
download | wireguard-openbsd-1cd0d2387698208d18d3d9dffee6f7a475784505.tar.xz wireguard-openbsd-1cd0d2387698208d18d3d9dffee6f7a475784505.zip |
Add missing braces in DenyUsers code. Patch from zev at bewilderbeest.net,
ok deraadt@
Diffstat (limited to 'usr.bin/ssh/auth.c')
-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 a71ebc95c10..d433e06eebc 100644 --- a/usr.bin/ssh/auth.c +++ b/usr.bin/ssh/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. * @@ -126,7 +126,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) { @@ -138,6 +138,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) { |