namespace-util: add missing half of the assertion in is_our_namespace()

This commit is contained in:
Mike Yuan
2026-06-13 17:11:10 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent 98852876dd
commit a53d9a5794
+1 -1
View File
@@ -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)