summaryrefslogtreecommitdiffstats
path: root/sys/security
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2014-08-16 13:11:59 +0000
committerbz <bz@FreeBSD.org>2014-08-16 13:11:59 +0000
commit7aec0e65a0caaa4a6c2bcdd958f1186e716dd80b (patch)
tree4342a2922fd65b3e0c0fc6a7b6008d8e2a6e4f87 /sys/security
parent2ec5bb69f444194289e212c7ba08981f9917b11f (diff)
downloadFreeBSD-src-7aec0e65a0caaa4a6c2bcdd958f1186e716dd80b.zip
FreeBSD-src-7aec0e65a0caaa4a6c2bcdd958f1186e716dd80b.tar.gz
MFC r259885:
As constantly reported during kernel compilation, m_buflen is unsigned so can never be < 0. Remove the expression, which can never be true.
Diffstat (limited to 'sys/security')
-rw-r--r--sys/security/mac/mac_framework.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/security/mac/mac_framework.c b/sys/security/mac/mac_framework.c
index 2707310..0c64414 100644
--- a/sys/security/mac/mac_framework.c
+++ b/sys/security/mac/mac_framework.c
@@ -587,8 +587,7 @@ int
mac_check_structmac_consistent(struct mac *mac)
{
- if (mac->m_buflen < 0 ||
- mac->m_buflen > MAC_MAX_LABEL_BUF_LEN)
+ if (mac->m_buflen > MAC_MAX_LABEL_BUF_LEN)
return (EINVAL);
return (0);
OpenPOWER on IntegriCloud