<p>This prevents some crashes</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/719'>https://github.com/kamailio/kamailio/pull/719</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>cdp: initializing a variable to 0 and checking a return ptr for null to prevent crashes</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/719/files#diff-0">modules/cdp/authstatemachine.c</a>
    (10)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/719/files#diff-1">modules/cdp/peermanager.c</a>
    (2)
  </li>
</ul>

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

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/719">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZYch5WIZhqRcn4gl9LPUBJL9eiYJks5qXkF5gaJpZM4JQ6dZ">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZV6GD1Nqs0-52Qc673zuRbJ2C8QLks5qXkF5gaJpZM4JQ6dZ.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/719"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>