Browse Source

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 năm trước cách đây
mục cha
commit
53263a2dda
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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);