<p>Corey Farrell has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/10387">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">astobj2: Fix inverted check ao2_container_clone.<br><br>ao2_container_clone had an inverted test for OBJ_NOLOCK.<br><br>Change-Id: I9662b82eb39e7627a1f1944fd18f967a2b987344<br>---<br>M main/astobj2_container.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.asterisk.org:29418/asterisk refs/changes/87/10387/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/main/astobj2_container.c b/main/astobj2_container.c</span><br><span>index 9bea58f..9a751e3 100644</span><br><span>--- a/main/astobj2_container.c</span><br><span>+++ b/main/astobj2_container.c</span><br><span>@@ -718,11 +718,11 @@</span><br><span>            return NULL;</span><br><span>         }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-   if (flags & OBJ_NOLOCK) {</span><br><span style="color: hsl(120, 100%, 40%);">+ if (!(flags & OBJ_NOLOCK)) {</span><br><span>             ao2_wrlock(clone);</span><br><span>   }</span><br><span>    failed = ao2_container_dup(clone, orig, flags);</span><br><span style="color: hsl(0, 100%, 40%);">- if (flags & OBJ_NOLOCK) {</span><br><span style="color: hsl(120, 100%, 40%);">+ if (!(flags & OBJ_NOLOCK)) {</span><br><span>             ao2_unlock(clone);</span><br><span>   }</span><br><span>    if (failed) {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/10387">change 10387</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/10387"/><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: I9662b82eb39e7627a1f1944fd18f967a2b987344 </div>
<div style="display:none"> Gerrit-Change-Number: 10387 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>