Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Sep 2021 18:13:39 GMT
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 3ea2cdd45ec1 - main - sctp: add explicit cast, no functional change intended
Message-ID:  <202109091813.189IDdiJ037330@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by tuexen:

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

commit 3ea2cdd45ec1e057315ccc3aea16a65d62aad337
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2021-09-09 17:13:47 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2021-09-09 17:13:47 +0000

    sctp: add explicit cast, no functional change intended
    
    MFC after:      3 days
---
 sys/netinet/sctp_pcb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c
index e571f80e472a..6ccd4ddf96b7 100644
--- a/sys/netinet/sctp_pcb.c
+++ b/sys/netinet/sctp_pcb.c
@@ -4542,7 +4542,7 @@ sctp_add_vtag_to_timewait(uint32_t tag, uint16_t lport, uint16_t rport)
 
 	SCTP_INP_INFO_WLOCK_ASSERT();
 	(void)SCTP_GETTIME_TIMEVAL(&now);
-	time = now.tv_sec + SCTP_BASE_SYSCTL(sctp_vtag_time_wait);
+	time = (uint32_t)now.tv_sec + SCTP_BASE_SYSCTL(sctp_vtag_time_wait);
 	chain = &SCTP_BASE_INFO(vtag_timewait)[(tag % SCTP_STACK_VTAG_HASH_SIZE)];
 	set = false;
 	LIST_FOREACH(twait_block, chain, sctp_nxt_tagblock) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109091813.189IDdiJ037330>