<p>Joshua Colp has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/16601">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">pbx_ael:  Fix crash and lockup issue regarding 'ael reload'<br><br>Avoid infinite recursion and crash<br><br>Change-Id: I8ed05ec3aa2806c50c77edc5dd0cd4e4fa08b3f4<br>(cherry picked from commit 4cd2679c5ed52c07903c305bb61e9f863100f12e)<br>---<br>M pbx/pbx_ael.c<br>1 file changed, 1 insertion(+), 6 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/01/16601/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/pbx/pbx_ael.c b/pbx/pbx_ael.c</span><br><span>index 8bf3af0..ed1c23d 100644</span><br><span>--- a/pbx/pbx_ael.c</span><br><span>+++ b/pbx/pbx_ael.c</span><br><span>@@ -280,13 +280,8 @@</span><br><span> </span><br><span> static int reload(void)</span><br><span> {</span><br><span style="color: hsl(0, 100%, 40%);">-#ifndef STANDALONE</span><br><span style="color: hsl(0, 100%, 40%);">-    /* Lock-Protected reload.  It is VERY BAD to have simultaneous ael pbx_load_module() executing at the same time */</span><br><span style="color: hsl(0, 100%, 40%);">-      return ast_module_reload("pbx_ael") == AST_MODULE_RELOAD_SUCCESS ? AST_MODULE_LOAD_SUCCESS : AST_MODULE_LOAD_DECLINE;</span><br><span style="color: hsl(0, 100%, 40%);">-#else</span><br><span style="color: hsl(0, 100%, 40%);">-    /* Lock-Protected reload not needed (and not available) when running standalone (Example: via aelparse cli tool).  No reload contention is possible */</span><br><span style="color: hsl(120, 100%, 40%);">+        /* Lock-Protected reload not needed because we're already being called from ast_module_reload() */</span><br><span>       return pbx_load_module();</span><br><span style="color: hsl(0, 100%, 40%);">-#endif</span><br><span> }</span><br><span> </span><br><span> #ifdef STANDALONE</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/16601">change 16601</a>. To unsubscribe, or for help writing mail filters, 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/c/asterisk/+/16601"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16.21 </div>
<div style="display:none"> Gerrit-Change-Id: I8ed05ec3aa2806c50c77edc5dd0cd4e4fa08b3f4 </div>
<div style="display:none"> Gerrit-Change-Number: 16601 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-CC: Mark Murawski <markm@intellasoft.net> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>