summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/security/mac_test/mac_test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/security/mac_test/mac_test.c b/sys/security/mac_test/mac_test.c
index ef8c5b3..05f0e8c 100644
--- a/sys/security/mac_test/mac_test.c
+++ b/sys/security/mac_test/mac_test.c
@@ -1038,7 +1038,9 @@ mac_test_execve_transition(struct ucred *old, struct ucred *new,
ASSERT_CRED_LABEL(old->cr_label);
ASSERT_CRED_LABEL(new->cr_label);
ASSERT_VNODE_LABEL(filelabel);
- ASSERT_VNODE_LABEL(interpvnodelabel);
+ if (interpvnodelabel != NULL) {
+ ASSERT_VNODE_LABEL(interpvnodelabel);
+ }
if (execlabel != NULL) {
ASSERT_CRED_LABEL(execlabel);
}
OpenPOWER on IntegriCloud