From a53d9a5794d5bed32d0901f0223cc2f737d151e3 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Tue, 17 Feb 2026 09:26:20 +0100 Subject: [PATCH] namespace-util: add missing half of the assertion in is_our_namespace() --- src/basic/namespace-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/namespace-util.c b/src/basic/namespace-util.c index fff518ef96..97ed3d268f 100644 --- a/src/basic/namespace-util.c +++ b/src/basic/namespace-util.c @@ -359,7 +359,7 @@ int is_our_namespace(int fd, NamespaceType type) { int r; assert(fd >= 0); - assert(type < _NAMESPACE_TYPE_MAX); + assert(type >= 0 && type < _NAMESPACE_TYPE_MAX); r = fd_is_namespace(fd, type); if (r < 0)