Browse code

presence: rename local variable that conflicts with tm define

(cherry picked from commit 8e69474ab7fd23ebd03bd193387f7e9fe8e1346d)

Daniel-Constantin Mierla authored on 04/05/2022 07:05:03
Showing 1 changed files
... ...
@@ -1297,7 +1297,7 @@ int extract_sdialog_info_ex(subs_t *subs, struct sip_msg *msg, uint32_t miexp,
1297 1297
 	str rec_route = {0, 0};
1298 1298
 	int rt = 0;
1299 1299
 	contact_body_t *b;
1300
-	struct to_body *pto, TO = {0}, *pfrom = NULL;
1300
+	struct to_body *pto, tob = {0}, *pfrom = NULL;
1301 1301
 	uint32_t lexpire;
1302 1302
 	str rtag_value;
1303 1303
 	struct sip_uri uri;
... ...
@@ -1346,12 +1346,12 @@ int extract_sdialog_info_ex(subs_t *subs, struct sip_msg *msg, uint32_t miexp,
1346 1346
 		LM_DBG("'To' header ALREADY PARSED: <%.*s>\n", pto->uri.len,
1347 1347
 				pto->uri.s);
1348 1348
 	} else {
1349
-		parse_to(msg->to->body.s, msg->to->body.s + msg->to->body.len + 1, &TO);
1350
-		if(TO.uri.len <= 0) {
1349
+		parse_to(msg->to->body.s, msg->to->body.s + msg->to->body.len + 1, &tob);
1350
+		if(tob.uri.len <= 0) {
1351 1351
 			LM_DBG("'To' header NOT parsed\n");
1352 1352
 			goto error;
1353 1353
 		}
1354
-		pto = &TO;
1354
+		pto = &tob;
1355 1355
 	}
1356 1356
 
1357 1357
 	if(pto->parsed_uri.user.s && pto->parsed_uri.host.s
... ...
@@ -1503,11 +1503,11 @@ int extract_sdialog_info_ex(subs_t *subs, struct sip_msg *msg, uint32_t miexp,
1503 1503
 	}
1504 1504
 	getbflagsval(0, &subs->flags);
1505 1505
 
1506
-	free_to_params(&TO);
1506
+	free_to_params(&tob);
1507 1507
 	return 0;
1508 1508
 
1509 1509
 error:
1510
-	free_to_params(&TO);
1510
+	free_to_params(&tob);
1511 1511
 	return -1;
1512 1512
 }
1513 1513