git: 78f391a79a4c - stable/13 - sctp: cleanup

From: Michael Tuexen <tuexen_at_FreeBSD.org>
Date: Wed, 01 Feb 2023 22:46:02 UTC
The branch stable/13 has been updated by tuexen:

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

commit 78f391a79a4c452506e2d29022edc92a48c0b2f0
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2022-04-19 19:40:22 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2023-02-01 22:45:42 +0000

    sctp: cleanup
    
    MFC after:      3 days
    
    (cherry picked from commit 89c6aba7cfa5327d814eb54336b3e9640cce0fac)
---
 sys/netinet/sctputil.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c
index 5f18e564cf21..9405814d3d13 100644
--- a/sys/netinet/sctputil.c
+++ b/sys/netinet/sctputil.c
@@ -2885,7 +2885,7 @@ sctp_timer_stop(int t_type, struct sctp_inpcb *inp, struct sctp_tcb *stcb,
 			 */
 			tmr_net = tmr->net;
 			tmr->net = NULL;
-			sctp_free_remote_addr((struct sctp_nets *)tmr_net);
+			sctp_free_remote_addr(tmr_net);
 		}
 	} else {
 		SCTPDBG(SCTP_DEBUG_TIMER2,