<p>Fix a crash on applications shared memory allocation<br>
when Diameter CEA contains Auth_Applications or Acct_Applications<br>
AVPs not "embedded" into Vendor_Specific grouped AVP<br>
Before only the memory for applications found on Vendor_Specific<br>
AVP was reserved, but if Acct_Applications or Auth_Applications<br>
not Vendor Specific is found, you need to reserve memory for<br>
the number of Acct_Applications or Auth_Applications AVPs found<br>
multiplied by the number of Supported Vendor ID AVPs found.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/kamailio/kamailio/pull/330'>https://github.com/kamailio/kamailio/pull/330</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Fix crash on applications memory reservation</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/330/files#diff-0">modules/cdp/diameter_avp.c</a>
    (7)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/330/files#diff-1">modules/cdp/peerstatemachine.c</a>
    (42)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/kamailio/kamailio/pull/330.patch'>https://github.com/kamailio/kamailio/pull/330.patch</a></li>
  <li><a href='https://github.com/kamailio/kamailio/pull/330.diff'>https://github.com/kamailio/kamailio/pull/330.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/pull/330">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZZ7NRFL_c3xfEl9aipDPliqAm5_Eks5oy8cQgaJpZM4F_uEe.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/pull/330"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>