diff --git a/lib/libnv/nvlist.c b/lib/libnv/nvlist.c index ba809f53a1c2..929ba4894596 100644 --- a/lib/libnv/nvlist.c +++ b/lib/libnv/nvlist.c @@ -582,7 +582,7 @@ nvlist_check_header(struct nvlist_header *nvlhdrp) errno = EINVAL; return (false); } - if ((nvlhdrp->nvlh_flags &= ~NV_FLAG_ALL_MASK) != 0) { + if ((nvlhdrp->nvlh_flags & ~NV_FLAG_ALL_MASK) != 0) { errno = EINVAL; return (false); }