<p>Jenkins2 <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/7827">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Corey Farrell: Looks good to me, but someone else must approve
Richard Mudgett: Looks good to me, approved
Jenkins2: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">chan_ooh323: Limit outgoinglimit to positive values as intended.<br><br>ASTERISK-27552<br><br>Change-Id: Ifbf9d51e7374ca2e8b27ec568f6770050fc1a854<br>---<br>M addons/chan_ooh323.c<br>1 file changed, 5 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c<br>index c25c130..1fa721c 100644<br>--- a/addons/chan_ooh323.c<br>+++ b/addons/chan_ooh323.c<br>@@ -2604,9 +2604,12 @@<br> }<br> <br> } else if (!strcasecmp(v->name, "outgoinglimit")) {<br>- peer->outgoinglimit = atoi(v->value);<br>- if (peer->outgoinglimit < 0)<br>+ int val = atoi(v->value);<br>+ if (val < 0) {<br> peer->outgoinglimit = 0;<br>+ } else {<br>+ peer->outgoinglimit = val;<br>+ }<br> } else if (!strcasecmp(v->name, "accountcode")) {<br> ast_copy_string(peer->accountcode, v->value, sizeof(peer->accountcode));<br> } else if (!strcasecmp(v->name, "faststart")) {<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7827">change 7827</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/7827"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: Ifbf9d51e7374ca2e8b27ec568f6770050fc1a854 </div>
<div style="display:none"> Gerrit-Change-Number: 7827 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: Alexander Traud <pabstraud@compuserve.com> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>