git: 595ac4a11893 - main - sctp: fix parameter type in NAT status message

From: Michael Tuexen <tuexen_at_FreeBSD.org>
Date: Wed, 13 Apr 2022 17:48:33 UTC
The branch main has been updated by tuexen:

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

commit 595ac4a11893971ba17a51e0477d580e29e1ef7a
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2022-04-13 17:46:28 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2022-04-13 17:46:28 +0000

    sctp: fix parameter type in NAT status message
    
    Thanks to Sriram Yagnaraman for providing the patch for the
    userland stack.
    
    MFC after:      3 days
---
 sys/netinet/sctp_asconf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netinet/sctp_asconf.c b/sys/netinet/sctp_asconf.c
index a4457471410e..675530c65fb6 100644
--- a/sys/netinet/sctp_asconf.c
+++ b/sys/netinet/sctp_asconf.c
@@ -3336,7 +3336,7 @@ out:
 		aa_add->ap.addrp.ph.param_type = SCTP_IPV4_ADDRESS;
 		aa_add->ap.addrp.ph.param_length = sizeof(struct sctp_ipv4addr_param);
 		/* No need to fill the address, we are using 0.0.0.0 */
-		aa_del->ap.aph.ph.param_type = SCTP_ADD_IP_ADDRESS;
+		aa_del->ap.aph.ph.param_type = SCTP_DEL_IP_ADDRESS;
 		aa_del->ap.aph.ph.param_length = sizeof(struct sctp_asconf_addrv4_param);
 		aa_del->ap.addrp.ph.param_type = SCTP_IPV4_ADDRESS;
 		aa_del->ap.addrp.ph.param_length = sizeof(struct sctp_ipv4addr_param);