Pārlūkot izejas kodu

tm: Reset socket variable while forking
- Reset sock_str variable so values from previous forks are not stored in contact_flows AVP

Hugh Waite 9 gadi atpakaļ
vecāks
revīzija
53263a2dda
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      modules/tm/t_serial.c

+ 2 - 0
modules/tm/t_serial.c

@@ -626,6 +626,8 @@ int t_next_contacts(struct sip_msg* msg, char* key, char* value)
 			}
 		} else {
 			sock = NULL;
+			sock_str.s = 0;
+			sock_str.len = 0;
 		}
 
 		vavp = xavp_get(&flags_name, xavp->val.v.xavp);