mgcp_client_fsm delete: set mgcp_client as ctx, not NULL
Upon mgcp_conn_delete(), we unparent the FSM instance. Instead of setting the talloc ctx to NULL, place the deleting conn under the struct mgcp_client talloc ctx. Related: SYS#5529 Change-Id: Ia12749e0d7d520f24a967c2df9a4651267e1019e
This commit is contained in:
parent
d64c041cdb
commit
9de30e7cc4
|
@ -709,8 +709,8 @@ void mgcp_conn_delete(struct osmo_fsm_inst *fi)
|
|||
if (fi->proc.terminating)
|
||||
return;
|
||||
|
||||
/* Unlink FSM from parent */
|
||||
osmo_fsm_inst_unlink_parent(fi, NULL);
|
||||
/* Unlink FSM from parent, set the struct mgcp_client as new talloc ctx. */
|
||||
osmo_fsm_inst_unlink_parent(fi, mgcp_ctx->mgcp);
|
||||
|
||||
/* An error situation where the parent FSM must be killed immediately
|
||||
* may lead into a situation where the DLCX can not be executed right
|
||||
|
|
Loading…
Reference in New Issue