[sr-dev] git:master:b056aed3: modules/ims_qos: do not free auth session on failure to send STR

jaybeepee jason.penton at gmail.com
Thu Nov 19 16:32:41 CET 2015


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

Author: jaybeepee <jason.penton at gmail.com>
Committer: jaybeepee <jason.penton at gmail.com>
Date: 2015-11-19T17:32:17+02:00

modules/ims_qos: do not free auth session on failure to send STR

---

Modified: modules/ims_qos/rx_str.c

---

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

---

diff --git a/modules/ims_qos/rx_str.c b/modules/ims_qos/rx_str.c
index 2451266..136ea56 100644
--- a/modules/ims_qos/rx_str.c
+++ b/modules/ims_qos/rx_str.c
@@ -106,7 +106,8 @@ int rx_send_str(str *rx_session_id) {
         // If we are in DISCON is because an STR was already sent
         // so just wait for STA or for Grace Timout to happen
         LM_DBG("Hmmm, auth session already in disconnected state\n");
-        goto error;
+        cdpb.AAASessionsUnlock(auth->hash);
+		CSCF_RETURN_FALSE;
     }
 
     LM_DBG("Creating STR\n");




More information about the sr-dev mailing list