瀏覽代碼

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 年之前
父節點
當前提交
53263a2dda
共有 1 個文件被更改,包括 2 次插入0 次删除
  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 {
 		} else {
 			sock = NULL;
 			sock = NULL;
+			sock_str.s = 0;
+			sock_str.len = 0;
 		}
 		}
 
 
 		vavp = xavp_get(&flags_name, xavp->val.v.xavp);
 		vavp = xavp_get(&flags_name, xavp->val.v.xavp);