Browse code

presence: rename local variable that conflicts with tm define

Daniel-Constantin Mierla authored on 04/05/2022 07:05:03
Showing 1 changed files
... ...
@@ -1303,7 +1303,7 @@ int extract_sdialog_info_ex(subs_t *subs, struct sip_msg *msg, uint32_t miexp,
1303 1303
 	str rec_route = {0, 0};
1304 1304
 	int rt = 0;
1305 1305
 	contact_body_t *b;
1306
-	struct to_body *pto, TO = {0}, *pfrom = NULL;
1306
+	struct to_body *pto, tob = {0}, *pfrom = NULL;
1307 1307
 	uint32_t lexpire;
1308 1308
 	str rtag_value;
1309 1309
 	struct sip_uri uri;
... ...
@@ -1352,12 +1352,12 @@ int extract_sdialog_info_ex(subs_t *subs, struct sip_msg *msg, uint32_t miexp,
1352 1352
 		LM_DBG("'To' header ALREADY PARSED: <%.*s>\n", pto->uri.len,
1353 1353
 				pto->uri.s);
1354 1354
 	} else {
1355
-		parse_to(msg->to->body.s, msg->to->body.s + msg->to->body.len + 1, &TO);
1356
-		if(TO.uri.len <= 0) {
1355
+		parse_to(msg->to->body.s, msg->to->body.s + msg->to->body.len + 1, &tob);
1356
+		if(tob.uri.len <= 0) {
1357 1357
 			LM_DBG("'To' header NOT parsed\n");
1358 1358
 			goto error;
1359 1359
 		}
1360
-		pto = &TO;
1360
+		pto = &tob;
1361 1361
 	}
1362 1362
 
1363 1363
 	if(pto->parsed_uri.user.s && pto->parsed_uri.host.s
... ...
@@ -1509,11 +1509,11 @@ int extract_sdialog_info_ex(subs_t *subs, struct sip_msg *msg, uint32_t miexp,
1509 1509
 	}
1510 1510
 	getbflagsval(0, &subs->flags);
1511 1511
 
1512
-	free_to_params(&TO);
1512
+	free_to_params(&tob);
1513 1513
 	return 0;
1514 1514
 
1515 1515
 error:
1516
-	free_to_params(&TO);
1516
+	free_to_params(&tob);
1517 1517
 	return -1;
1518 1518
 }
1519 1519