Module: kamailio
Branch: master
Commit: 88d38bd306f595585af6e972ac529b40d7a93b58
URL:
https://github.com/kamailio/kamailio/commit/88d38bd306f595585af6e972ac529b4…
Author: Riccardo Villa <riccardo.villa(a)netaxis.be>
Committer: Riccardo Villa <riccardo.villa(a)netaxis.be>
Date: 2021-02-24T09:56:44+01:00
ims_diameter_server: fix check for addAVPsfromJSON return code
---
Modified: src/modules/ims_diameter_server/ims_diameter_server.c
---
Diff:
https://github.com/kamailio/kamailio/commit/88d38bd306f595585af6e972ac529b4…
Patch:
https://github.com/kamailio/kamailio/commit/88d38bd306f595585af6e972ac529b4…
---
diff --git a/src/modules/ims_diameter_server/ims_diameter_server.c
b/src/modules/ims_diameter_server/ims_diameter_server.c
index 5b69c8973c..fae5f58ce9 100644
--- a/src/modules/ims_diameter_server/ims_diameter_server.c
+++ b/src/modules/ims_diameter_server/ims_diameter_server.c
@@ -317,7 +317,7 @@ int diameter_request(struct sip_msg * msg, char* peer, char* appid,
char* comman
if (!req) goto error1;
- if (addAVPsfromJSON(req, &s_message)) {
+ if (!addAVPsfromJSON(req, &s_message)) {
LM_ERR("Failed to parse JSON Request\n");
return -1;
}