Przeglądaj źródła

tm: Reset socket variable while forking
- Reset sock_str variable so values from previous forks are not stored in contact_flows AVP
(cherry picked from commit 53263a2ddad9bb118763516bcd7995652c4fb070)

Hugh Waite 9 lat temu
rodzic
commit
727746451b
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      modules/tm/t_serial.c

+ 2 - 0
modules/tm/t_serial.c

@@ -598,6 +598,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);