浏览代码

ims_usrloc_pcscf: do not updated received info should be write once info
- also fixes memory corruption after pcontact structure optimised
to use placement

jaybeepee 10 年之前
父节点
当前提交
5cd019ae14
共有 1 个文件被更改,包括 0 次插入9 次删除
  1. 0 9
      modules/ims_usrloc_pcscf/udomain.c

+ 0 - 9
modules/ims_usrloc_pcscf/udomain.c

@@ -390,15 +390,6 @@ int update_pcontact(struct udomain* _d, struct pcontact_info* _ci, struct pconta
 		}
 		}
 	}
 	}
 
 
-	// update received info (if info is available):
-	if (_ci->received_host.len > 0) {
-		if (_c->received_host.s)
-			shm_free(_c->received_host.s);
-		STR_SHM_DUP(_c->received_host, _ci->received_host, "update_pcontact");
-	}
-	if (_ci->received_port > 0) _c->received_port = _ci->received_port;
-	if (_ci->received_proto > 0) _c->received_proto = _ci->received_proto;
-
 	//update Rx reg session information
 	//update Rx reg session information
 	if (_ci->rx_regsession_id && _ci->rx_regsession_id->len>0 && _ci->rx_regsession_id->s) {
 	if (_ci->rx_regsession_id && _ci->rx_regsession_id->len>0 && _ci->rx_regsession_id->s) {
 		if (_c->rx_session_id.len > 0 && _c->rx_session_id.s) {
 		if (_c->rx_session_id.len > 0 && _c->rx_session_id.s) {