summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/sudo/env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/sudo/env.c b/usr.bin/sudo/env.c
index 3dc11836ecc..ef2785d95bf 100644
--- a/usr.bin/sudo/env.c
+++ b/usr.bin/sudo/env.c
@@ -832,7 +832,7 @@ validate_env_vars(env_vars)
okvar = matches_env_keep(var->value);
} else {
okvar = matches_env_delete(var->value) == FALSE;
- if (okvar == FALSE)
+ if (okvar == TRUE)
okvar = matches_env_check(var->value) != FALSE;
}
if (okvar == FALSE) {