aboutsummaryrefslogtreecommitdiff
path: root/sbin/veriexec/veriexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/veriexec/veriexec.c')
-rw-r--r--sbin/veriexec/veriexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/veriexec/veriexec.c b/sbin/veriexec/veriexec.c
index c1facbd4a9fa..1eb7a9af7d6f 100644
--- a/sbin/veriexec/veriexec.c
+++ b/sbin/veriexec/veriexec.c
@@ -91,7 +91,7 @@ main(int argc, char *argv[])
ctl = VERIEXEC_STATE_ENFORCE;
break;
case 'l': /* loaded/locked */
- ctl = (strncmp(optarg, "lock", 4)) ?
+ ctl = (strncmp(optarg, "lock", 4) == 0) ?
VERIEXEC_STATE_LOCKED :
VERIEXEC_STATE_LOADED;
break;