<p>In <a href="https://github.com/OpenSIPS/opensips/pull/701#discussion_r47752264">modules/uac_registrant/registrant.c</a>:</p>
<pre style='color:#555'>&gt; +                memcpy(new_rec-&gt;td.id.call_id.s, old_rec-&gt;td.id.call_id.s,
&gt; +                    new_rec-&gt;td.id.call_id.len);
&gt; +                memcpy(new_rec-&gt;td.id.loc_tag.s, old_rec-&gt;td.id.loc_tag.s,
&gt; +                    new_rec-&gt;td.id.loc_tag.len);
&gt; +                new_rec-&gt;td.loc_seq.value = old_rec-&gt;td.loc_seq.value;
&gt; +                new_rec-&gt;last_register_sent = old_rec-&gt;last_register_sent;
&gt; +                new_rec-&gt;registration_timeout = old_rec-&gt;registration_timeout;
&gt; +                new_rec-&gt;state = old_rec-&gt;state;
&gt; +        }
&gt; +        return 0;
&gt; +}
&gt; +
&gt; +int run_find_same_rec(void *e_data, void *data, void *r_data)
&gt; +{
&gt; +        reg_record_t *new_rec = (reg_record_t*)e_data;
&gt; +        int i = (int*)data;
</pre>
<p><a href="https://github.com/ovidiusas" class="user-mention">@ovidiusas</a> could you review this a bit - while looking at the <a href="https://travis-ci.org/OpenSIPS/opensips/builds/97166562">Travis log</a> I noticed this warning, which actually may lead to a bug.</p>

<p><code>data</code> is a pointer to an integer, that is passed to an integer. This may be a <em>huge</em> value, that is used below to index the <code>reg_htable</code>.</p>

<p>My guess is that the line should be <code>int i = *(int *)data;</code>, but please give it a look too.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/pull/701/files#r47752264">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcibByZR6GW11BPt7qf57iuvZ2nq_Gks5pQSSsgaJpZM4Gn_LN.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/OpenSIPS/opensips/pull/701/files#r47752264"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>