From 190d2871a5bc7ba9639ac1d24cbf84b94b8cdd4a Mon Sep 17 00:00:00 2001 From: Sriram Yagnaraman Date: Tue, 3 May 2022 12:56:01 +0200 Subject: [PATCH] asconf: set last_control_chunk_from to null If we get ASCONF from a new address, i.e, we couldn't find the net, set last_control_chunk_from to null. This will force ASCONF processing to find the correct net later, else ASCONF_ACK ends up being sent to the net where the last control chunk (like COOKIE_ECHO/COOKIE_ACK) was received from. --- usrsctplib/netinet/sctp_input.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usrsctplib/netinet/sctp_input.c b/usrsctplib/netinet/sctp_input.c index ae20c4038..20ca1336b 100755 --- a/usrsctplib/netinet/sctp_input.c +++ b/usrsctplib/netinet/sctp_input.c @@ -4999,6 +4999,8 @@ sctp_process_control(struct mbuf *m, int iphlen, int *offset, int length, */ if ((netp != NULL) && (*netp != NULL)) stcb->asoc.last_control_chunk_from = *netp; + else + stcb->asoc.last_control_chunk_from = NULL; } } #ifdef SCTP_AUDITING_ENABLED