Module: kamailio
Branch: master
Commit: 5f8adb625b6bae81ef44613d774106bf3a943bb0
URL: 
https://github.com/kamailio/kamailio/commit/5f8adb625b6bae81ef44613d774106bf3a943bb0

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2025-02-04T08:05:28+01:00

msrp: send failure response after referening the buffer

---

Modified: src/modules/msrp/msrp_cmap.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/5f8adb625b6bae81ef44613d774106bf3a943bb0.diff
Patch: 
https://github.com/kamailio/kamailio/commit/5f8adb625b6bae81ef44613d774106bf3a943bb0.patch

---

diff --git a/src/modules/msrp/msrp_cmap.c b/src/modules/msrp/msrp_cmap.c
index e1a378ee7ac..072fe5f7529 100644
--- a/src/modules/msrp/msrp_cmap.c
+++ b/src/modules/msrp/msrp_cmap.c
@@ -183,8 +183,8 @@ int msrp_cmap_save(msrp_frame_t *mf)
                LM_DBG("expires is greater than max value\n");
                xhdrs.len = snprintf(sbuf, MSRP_SBUF_SIZE, "Max-Expires: 
%d\r\n",
                                msrp_auth_max_expires);
-               msrp_reply(mf, &msrp_reply_423_code, &msrp_reply_423_text, 
&xhdrs);
                xhdrs.s = sbuf;
+               msrp_reply(mf, &msrp_reply_423_code, &msrp_reply_423_text, 
&xhdrs);
                return -4;
        }
        if(msrp_frame_get_first_from_path(mf, &fpeer) < 0) {

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to