mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
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
This commit is contained in:
parent
6dcfd4368f
commit
f41b2de716
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=314838
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user