Browse code

ims_diameter_server: fix check for addAVPsfromJSON return code

(cherry picked from commit 88d38bd306f595585af6e972ac529b40d7a93b58)
(cherry picked from commit 532eedac63d0bd2b0c4c6b4f9557ac243b008376)

Riccardo Villa authored on 24/02/2021 08:56:44 • Henning Westerholt committed on 22/10/2021 11:22:27
Showing 1 changed files
... ...
@@ -317,7 +317,7 @@ int diameter_request(struct sip_msg * msg, char* peer, char* appid, char* comman
317 317
 
318 318
 	if (!req) goto error1;
319 319
 
320
-	if (addAVPsfromJSON(req, &s_message)) {
320
+	if (!addAVPsfromJSON(req, &s_message)) {
321 321
 		LM_ERR("Failed to parse JSON Request\n");
322 322
 		return -1;
323 323
 	}