mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix off-by-one error in KASSERT from 02f26e98c7.
This commit is contained in:
parent
2763a0928a
commit
faa9ad8a90
1 changed files with 1 additions and 1 deletions
|
|
@ -470,7 +470,7 @@ tcp_hc_insert(struct in_conninfo *inc)
|
|||
*/
|
||||
TAILQ_INSERT_HEAD(&hc_head->hch_bucket, hc_entry, rmx_q);
|
||||
V_tcp_hostcache.hashbase[hash].hch_length++;
|
||||
KASSERT(V_tcp_hostcache.hashbase[hash].hch_length <
|
||||
KASSERT(V_tcp_hostcache.hashbase[hash].hch_length <=
|
||||
V_tcp_hostcache.bucket_limit,
|
||||
("tcp_hostcache: bucket length too high at %u: %u",
|
||||
hash, V_tcp_hostcache.hashbase[hash].hch_length));
|
||||
|
|
|
|||
Loading…
Reference in a new issue