diff options
author | Patrick Kelsey <pkelsey@FreeBSD.org> | 2018-02-26 20:31:16 +0000 |
---|---|---|
committer | Patrick Kelsey <pkelsey@FreeBSD.org> | 2018-02-26 20:31:16 +0000 |
commit | 1f13c23f3d6ec1d99f1855e15c438717bb1a4b74 (patch) | |
tree | bff6163bfbef6dc070717cb538528a6284bbbb52 /sys/netinet | |
parent | 9176635592d16f1e9538cf72af4fe77c78555508 (diff) | |
download | src-1f13c23f3d6ec1d99f1855e15c438717bb1a4b74.tar.gz src-1f13c23f3d6ec1d99f1855e15c438717bb1a4b74.zip |
Ensure signed comparison to avoid false trip of assert during VNET teardown.
Reported by: lwhsu
MFC after: 1 month
Notes
Notes:
svn path=/head/; revision=330035
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/tcp_fastopen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_fastopen.c b/sys/netinet/tcp_fastopen.c index 98df703a1cce..9176c0d640bd 100644 --- a/sys/netinet/tcp_fastopen.c +++ b/sys/netinet/tcp_fastopen.c @@ -1101,7 +1101,7 @@ tcp_fastopen_ccache_bucket_trim(struct tcp_fastopen_ccache_bucket *ccb, if (entries > limit) tcp_fastopen_ccache_entry_drop(cce, ccb); } - KASSERT(ccb->ccb_num_entries <= limit, + KASSERT(ccb->ccb_num_entries <= (int)limit, ("%s: ccb->ccb_num_entries %d exceeds limit %d", __func__, ccb->ccb_num_entries, limit)); if (limit == 0) { |