]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
src/login_nopam.c: list_match(): '(match)' is always true here
authorAlejandro Colomar <alx@kernel.org>
Thu, 16 Jan 2025 23:14:54 +0000 (00:14 +0100)
committerAlejandro Colomar <alx@kernel.org>
Sat, 18 Jan 2025 20:32:20 +0000 (21:32 +0100)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
src/login_nopam.c

index f59811b60edbd7e46d992323bf307d34acc158cd..0a027fcdc3d2cc96df6146a92d1ba00fe9c89e11 100644 (file)
@@ -173,7 +173,7 @@ list_match(char *list, const char *item, bool (*match_fn)(char *, const char*))
                       && (strcasecmp (tok, "EXCEPT") != 0))
                        /* VOID */ ;
                if (tok == NULL || !list_match(list, item, match_fn)) {
-                       return (match);
+                       return true;
                }
        }
        return false;