From: Mike Yuan Date: Tue, 17 Feb 2026 08:26:20 +0000 (+0100) Subject: namespace-util: add missing half of the assertion in is_our_namespace() X-Git-Tag: v261-rc4~34^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a53d9a5794d5bed32d0901f0223cc2f737d151e3;p=thirdparty%2Fsystemd.git namespace-util: add missing half of the assertion in is_our_namespace() --- diff --git a/src/basic/namespace-util.c b/src/basic/namespace-util.c index fff518ef969..97ed3d268fc 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)