diff options
author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2013-12-25 20:10:17 +0000 |
---|---|---|
committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2013-12-25 20:10:17 +0000 |
commit | 523b2279b80da1604c0556014bc020c9ed1e36ec (patch) | |
tree | 4fd3d3931303c91069e0b1c27ebe82e3c9dfd6da /sys/security | |
parent | 010c2b81921e7334a7fdde70e6dc0cdf1eb24c98 (diff) | |
download | src-523b2279b80da1604c0556014bc020c9ed1e36ec.tar.gz src-523b2279b80da1604c0556014bc020c9ed1e36ec.zip |
Notes
Diffstat (limited to 'sys/security')
-rw-r--r-- | sys/security/mac/mac_framework.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/security/mac/mac_framework.c b/sys/security/mac/mac_framework.c index d2416eb721d3..0f0a2ff9b17e 100644 --- a/sys/security/mac/mac_framework.c +++ b/sys/security/mac/mac_framework.c @@ -586,8 +586,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); |