<p>neels has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-mgw/+/24946">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">mgcp_client_fsm delete: set mgcp_client as ctx, not NULL<br><br>Upon mgcp_conn_delete(), we unparent the FSM instance. Instead of<br>setting the talloc ctx to NULL, place the deleting conn under the<br>struct mgcp_client talloc ctx.<br><br>Related: SYS#5529<br>Change-Id: Ia12749e0d7d520f24a967c2df9a4651267e1019e<br>---<br>M src/libosmo-mgcp-client/mgcp_client_fsm.c<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/46/24946/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/libosmo-mgcp-client/mgcp_client_fsm.c b/src/libosmo-mgcp-client/mgcp_client_fsm.c</span><br><span>index 1c0cd59..57c6d98 100644</span><br><span>--- a/src/libosmo-mgcp-client/mgcp_client_fsm.c</span><br><span>+++ b/src/libosmo-mgcp-client/mgcp_client_fsm.c</span><br><span>@@ -709,8 +709,8 @@</span><br><span>       if (fi->proc.terminating)</span><br><span>                 return;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-     /* Unlink FSM from parent */</span><br><span style="color: hsl(0, 100%, 40%);">-    osmo_fsm_inst_unlink_parent(fi, NULL);</span><br><span style="color: hsl(120, 100%, 40%);">+        /* Unlink FSM from parent, set the struct mgcp_client as new talloc ctx. */</span><br><span style="color: hsl(120, 100%, 40%);">+   osmo_fsm_inst_unlink_parent(fi, mgcp_ctx->mgcp);</span><br><span> </span><br><span>      /* An error situation where the parent FSM must be killed immediately</span><br><span>         * may lead into a situation where the DLCX can not be executed right</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-mgw/+/24946">change 24946</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-mgw/+/24946"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-mgw </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ia12749e0d7d520f24a967c2df9a4651267e1019e </div>
<div style="display:none"> Gerrit-Change-Number: 24946 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>