<p>Corey Farrell has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/7804">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">translators: Don't use ast_module_running_ref.<br><br>Translators are run during module load before the module is actually<br>running, so it cannot use ast_module_running_ref.<br><br>ASTERISK-20346<br><br>Change-Id: Iaa0e75da99c696e38000f1a41e340abbd7a88f56<br>---<br>M main/translate.c<br>1 file changed, 2 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/04/7804/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/main/translate.c b/main/translate.c<br>index 3d49057..9a1db10 100644<br>--- a/main/translate.c<br>+++ b/main/translate.c<br>@@ -342,7 +342,8 @@<br> */<br> pvt->explicit_dst = ao2_bump(explicit_dst);<br> <br>- if (!ast_module_running_ref(t->module)) {<br>+ /* If the translator is in a module it must be running. */<br>+ if (t->module && !ast_module_running_ref(t->module)) {<br> ast_free(pvt);<br> return NULL;<br> }<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7804">change 7804</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.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.asterisk.org/7804"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Iaa0e75da99c696e38000f1a41e340abbd7a88f56 </div>
<div style="display:none"> Gerrit-Change-Number: 7804 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>