The branch main has been updated by glebius:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=faa9ad8a90058cf07e806cea51c0030bf69f88db

commit faa9ad8a90058cf07e806cea51c0030bf69f88db
Author:     Gleb Smirnoff <[email protected]>
AuthorDate: 2021-04-20 00:20:19 +0000
Commit:     Gleb Smirnoff <[email protected]>
CommitDate: 2021-04-20 00:20:19 +0000

    Fix off-by-one error in KASSERT from 02f26e98c7f4.
---
 sys/netinet/tcp_hostcache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netinet/tcp_hostcache.c b/sys/netinet/tcp_hostcache.c
index 25190697bdee..baefa55fd076 100644
--- a/sys/netinet/tcp_hostcache.c
+++ b/sys/netinet/tcp_hostcache.c
@@ -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));
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main
To unsubscribe, send any mail to "[email protected]"

Reply via email to