<p>In modules/presence_dialoginfo/notify_body.c:</p>
<pre style='color:#555'>&gt;                  return NULL;
&gt; -        }
&gt; -        memcpy(buf, &quot;sip:&quot;, 4);
&gt; -        memcpy(buf+4, pres_user-&gt;s, pres_user-&gt;len);
&gt; -        buf[pres_user-&gt;len+4] = &#39;@&#39;;
&gt; -        memcpy(buf + pres_user-&gt;len + 5, pres_domain-&gt;s, pres_domain-&gt;len);
&gt; -        buf[pres_user-&gt;len + 5 + pres_domain-&gt;len]= &#39;\0&#39;;
&gt; -
&gt; -        pres_uri = (str*)pkg_malloc(sizeof(str));
&gt; -        if(pres_uri == NULL)
&gt; -        {
&gt; -                LM_ERR(&quot;while allocating memory\n&quot;);
&gt; -                return NULL;
&gt; -        }
&gt; -        memset(pres_uri, 0, sizeof(str));
</pre>
<p>Memset just before setting it.</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/177/files#r10510194'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/5479561__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxMDIzNTg4NCwiZGF0YSI6eyJpZCI6Mjc0OTgxNDZ9fQ==--78343176593b200e45785d237e3c0eb6f7499a66.gif' height='1' width='1'></p>