Module: kamailio
Branch: master
Commit: faf1edabf732af5a24ad0399098ad11e27b3a1ab
URL:
https://github.com/kamailio/kamailio/commit/faf1edabf732af5a24ad0399098ad11…
Author: Riccardo Villa <riccardo.villa(a)netaxis.be>
Committer: Riccardo Villa <riccardo.villa(a)netaxis.be>
Date: 2021-02-24T09:54:47+01:00
ims_diameter_server: fix initialization of s_message
---
Modified: src/modules/ims_diameter_server/ims_diameter_server.c
---
Diff:
https://github.com/kamailio/kamailio/commit/faf1edabf732af5a24ad0399098ad11…
Patch:
https://github.com/kamailio/kamailio/commit/faf1edabf732af5a24ad0399098ad11…
---
diff --git a/src/modules/ims_diameter_server/ims_diameter_server.c
b/src/modules/ims_diameter_server/ims_diameter_server.c
index 62b8c3add8..7266f655c6 100644
--- a/src/modules/ims_diameter_server/ims_diameter_server.c
+++ b/src/modules/ims_diameter_server/ims_diameter_server.c
@@ -280,6 +280,10 @@ int diameter_request(struct sip_msg * msg, char* peer, char* appid,
char* comman
}
LM_DBG("Peer %.*s\n", s_peer.len, s_peer.s);
}
+ if (get_str_fparam(&s_message, msg, (fparam_t*)message) < 0) {
+ LM_ERR("failed to get Message\n");
+ return -1;
+ }
if (get_str_fparam(&s_appid, msg, (fparam_t*)appid) < 0) {
LM_ERR("failed to get App-ID\n");
return -1;