diff options
Diffstat (limited to 'auth.c')
-rw-r--r-- | auth.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: auth.c,v 1.38 2002/03/18 03:41:08 provos Exp $"); | 26 | RCSID("$OpenBSD: auth.c,v 1.39 2002/03/19 10:49:35 markus Exp $"); |
27 | 27 | ||
28 | #ifdef HAVE_LOGIN_H | 28 | #ifdef HAVE_LOGIN_H |
29 | #include <login.h> | 29 | #include <login.h> |
@@ -125,17 +125,17 @@ allowed_user(struct passwd * pw) | |||
125 | /* Return false if user is listed in DenyUsers */ | 125 | /* Return false if user is listed in DenyUsers */ |
126 | if (options.num_deny_users > 0) { | 126 | if (options.num_deny_users > 0) { |
127 | for (i = 0; i < options.num_deny_users; i++) | 127 | for (i = 0; i < options.num_deny_users; i++) |
128 | if (match_user(pw->pw_name, hostname, ipaddr, | 128 | if (match_user(pw->pw_name, hostname, ipaddr, |
129 | options.deny_users[i])) { | 129 | options.deny_users[i])) { |
130 | log("User %.100s not allowed because listed in DenyUsers", | 130 | log("User %.100s not allowed because listed in DenyUsers", |
131 | pw->pw_name); | 131 | pw->pw_name); |
132 | return 0; | 132 | return 0; |
133 | } | 133 | } |
134 | } | 134 | } |
135 | /* Return false if AllowUsers isn't empty and user isn't listed there */ | 135 | /* Return false if AllowUsers isn't empty and user isn't listed there */ |
136 | if (options.num_allow_users > 0) { | 136 | if (options.num_allow_users > 0) { |
137 | for (i = 0; i < options.num_allow_users; i++) | 137 | for (i = 0; i < options.num_allow_users; i++) |
138 | if (match_user(pw->pw_name, hostname, ipaddr, | 138 | if (match_user(pw->pw_name, hostname, ipaddr, |
139 | options.allow_users[i])) | 139 | options.allow_users[i])) |
140 | break; | 140 | break; |
141 | /* i < options.num_allow_users iff we break for loop */ | 141 | /* i < options.num_allow_users iff we break for loop */ |