The branch stable/13 has been updated by tuexen:

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

commit 2d12958d4b5b0cd7799662f3f69284c716264f92
Author:     Michael Tuexen <tue...@freebsd.org>
AuthorDate: 2023-09-08 19:19:59 +0000
Commit:     Michael Tuexen <tue...@freebsd.org>
CommitDate: 2024-01-11 12:57:29 +0000

    sctp: don't call sctp_ulp_notify() recursively
    
    This does not work with the new locking scheme.
    
    (cherry picked from commit 1e81a4e7e89bb1870bec84e42284ad10505e957c)
---
 sys/netinet/sctputil.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c
index e6121a1635b7..8b2e95158ebc 100644
--- a/sys/netinet/sctputil.c
+++ b/sys/netinet/sctputil.c
@@ -4115,7 +4115,7 @@ sctp_ulp_notify(uint32_t notification, struct sctp_tcb 
*stcb,
                        sctp_notify_adaptation_layer(stcb, so_locked);
                }
                if (stcb->asoc.auth_supported == 0) {
-                       sctp_ulp_notify(SCTP_NOTIFY_NO_PEER_AUTH, stcb, 0, 
NULL, so_locked);
+                       sctp_notify_authentication(stcb, SCTP_AUTH_NO_AUTH, 0, 
so_locked);
                }
                break;
        case SCTP_NOTIFY_ASSOC_DOWN:
@@ -4180,7 +4180,7 @@ sctp_ulp_notify(uint32_t notification, struct sctp_tcb 
*stcb,
        case SCTP_NOTIFY_ASSOC_RESTART:
                sctp_notify_assoc_change(SCTP_RESTART, stcb, error, NULL, 
false, false, so_locked);
                if (stcb->asoc.auth_supported == 0) {
-                       sctp_ulp_notify(SCTP_NOTIFY_NO_PEER_AUTH, stcb, 0, 
NULL, so_locked);
+                       sctp_notify_authentication(stcb, SCTP_AUTH_NO_AUTH, 0, 
so_locked);
                }
                break;
        case SCTP_NOTIFY_STR_RESET_SEND:

Reply via email to