aboutsummaryrefslogtreecommitdiff
path: root/website/static/security/patches/SA-21:03/pam_login_access.patch
blob: c31c11a3134858b523bc4024cd8011f7296ac734 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- lib/libpam/modules/pam_login_access/login_access.c.orig
+++ lib/libpam/modules/pam_login_access/login_access.c
@@ -137,10 +137,10 @@
     if (match != NO) {
 	while ((tok = strtok((char *) 0, listsep)) && strcmp(tok, "EXCEPT")) {
 	     /* VOID */ ;
-	    if (tok == NULL || list_match((char *) 0, item, match_fn,
-		login_access_opts) == NO) {
+	}
+	if (tok == NULL ||
+	    list_match((char *) 0, item, match_fn, login_access_opts) == NO) {
 		return (match);
-	    }
 	}
     }
     return (NO);