aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorHiren Panchasara <hiren@FreeBSD.org>2017-03-07 06:46:38 +0000
committerHiren Panchasara <hiren@FreeBSD.org>2017-03-07 06:46:38 +0000
commitf41b2de716a31b621b877dc16c775d33432be060 (patch)
tree7bd5bcc7b510e38e2db7a680694c3e9877cce71e /sys
parent6dcfd4368f5b320c8aa023a8b7a2b41c6b0a1f94 (diff)
downloadsrc-f41b2de716a31b621b877dc16c775d33432be060.tar.gz
src-f41b2de716a31b621b877dc16c775d33432be060.zip
Fix the KASSERT check from r314813.
len being 0 is valid. Submitted by: ngie Reported by: ngie (via jenkins test run) Sponsored by: Limelight Networks
Notes
Notes: svn path=/head/; revision=314838
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/uipc_sockbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/uipc_sockbuf.c b/sys/kern/uipc_sockbuf.c
index 5685bc012547..f8e3779b6986 100644
--- a/sys/kern/uipc_sockbuf.c
+++ b/sys/kern/uipc_sockbuf.c
@@ -1043,7 +1043,7 @@ sbcut_internal(struct sockbuf *sb, int len)
{
struct mbuf *m, *next, *mfree;
- KASSERT(len > 0, ("%s: len is %d but it is supposed to be +ve",
+ KASSERT(len >= 0, ("%s: len is %d but it is supposed to be >= 0",
__func__, len));
KASSERT(len <= sb->sb_ccc, ("%s: len: %d is > ccc: %u",
__func__, len, sb->sb_ccc));