Browse code

topos: reset vavu variable, otherwise we will get errors in contact_mode 2 (GH #2852)

Henning Westerholt authored on 28/09/2021 11:27:50
Showing 1 changed files
... ...
@@ -352,7 +352,8 @@ int tps_storage_fill_contact(sip_msg_t *msg, tps_data_t *td, str *uuid, int dir,
352 352
 			td->cp++;
353 353
 		}
354 354
 
355
-		/* contact_host xavu takes preference */
355
+		/* contact_host xavu takes preference, reset vavu */
356
+		vavu = NULL;
356 357
 		if (_tps_xavu_cfg.len>0 && _tps_xavu_field_contact_host.len>0) {
357 358
 			vavu = xavu_get_child_with_sval(&_tps_xavu_cfg,
358 359
 					&_tps_xavu_field_contact_host);