Browse code

ims_diameter_server: fix initialization of s_message

(cherry picked from commit faf1edabf732af5a24ad0399098ad11e27b3a1ab)
(cherry picked from commit 9fb04eb982ef4903801970981faff9b547258c32)

Riccardo Villa authored on 24/02/2021 08:54:47 • Henning Westerholt committed on 22/10/2021 11:22:10
Showing 1 changed files
... ...
@@ -280,6 +280,10 @@ int diameter_request(struct sip_msg * msg, char* peer, char* appid, char* comman
280 280
 		}
281 281
 		LM_DBG("Peer %.*s\n", s_peer.len, s_peer.s);
282 282
 	}
283
+	if (get_str_fparam(&s_message, msg, (fparam_t*)message) < 0) {
284
+		LM_ERR("failed to get Message\n");
285
+		return -1;
286
+	}
283 287
 	if (get_str_fparam(&s_appid, msg, (fparam_t*)appid) < 0) {
284 288
 		LM_ERR("failed to get App-ID\n");
285 289
 		return -1;