aboutsummaryrefslogtreecommitdiff
path: root/sys/security
diff options
context:
space:
mode:
authorOlivier Certner <olce@FreeBSD.org>2024-07-05 11:49:27 +0000
committerOlivier Certner <olce@FreeBSD.org>2024-12-16 14:42:37 +0000
commitfa4352b74580832d7b501d34d09a564438a82c3d (patch)
tree25c94b9397cf8922b5531966a70c232ae65f4598 /sys/security
parente4ce30f8da612db96410b66cccf9fc12ccce282a (diff)
Diffstat (limited to 'sys/security')
-rw-r--r--sys/security/mac_do/mac_do.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/security/mac_do/mac_do.c b/sys/security/mac_do/mac_do.c
index 4ef9b68bf513..edd728ea070a 100644
--- a/sys/security/mac_do/mac_do.c
+++ b/sys/security/mac_do/mac_do.c
@@ -105,7 +105,7 @@ parse_rule_element(char *element, struct rule **rule)
}
id = strsep(&element, ":");
- if (id == NULL) {
+ if (id == NULL || *id == '\0') {
error = EINVAL;
goto error;
}