Module: kamailio
Branch: master
Commit: 84c342277f2a73196cb377476f2b80e6b4085e7b
URL:
https://github.com/kamailio/kamailio/commit/84c342277f2a73196cb377476f2b80e…
Author: Riccardo Villa <riccardo.villa(a)netaxis.be>
Committer: Riccardo Villa <riccardo.villa(a)netaxis.be>
Date: 2021-02-24T09:55:46+01:00
ims_diameter_server: drop cdp session to avoid deadlock
---
Modified: src/modules/ims_diameter_server/ims_diameter_server.c
---
Diff:
https://github.com/kamailio/kamailio/commit/84c342277f2a73196cb377476f2b80e…
Patch:
https://github.com/kamailio/kamailio/commit/84c342277f2a73196cb377476f2b80e…
---
diff --git a/src/modules/ims_diameter_server/ims_diameter_server.c
b/src/modules/ims_diameter_server/ims_diameter_server.c
index 7266f655c6..5b69c8973c 100644
--- a/src/modules/ims_diameter_server/ims_diameter_server.c
+++ b/src/modules/ims_diameter_server/ims_diameter_server.c
@@ -310,6 +310,11 @@ int diameter_request(struct sip_msg * msg, char* peer, char* appid,
char* comman
session = cdpb.AAACreateSession(0);
req = cdpb.AAACreateRequest(i_appid, i_commandcode, Flag_Proxyable, session);
+ if (session) {
+ cdpb.AAADropSession(session);
+ session = 0;
+ }
+
if (!req) goto error1;
if (addAVPsfromJSON(req, &s_message)) {