<p>In modules/presence_dialoginfo/notify_body.c:</p>
<pre style='color:#555'>>                 return NULL;
> -        }
> -        memcpy(buf, "sip:", 4);
> -        memcpy(buf+4, pres_user->s, pres_user->len);
> -        buf[pres_user->len+4] = '@';
> -        memcpy(buf + pres_user->len + 5, pres_domain->s, pres_domain->len);
> -        buf[pres_user->len + 5 + pres_domain->len]= '\0';
> -
> -        pres_uri = (str*)pkg_malloc(sizeof(str));
> -        if(pres_uri == NULL)
> -        {
> -                LM_ERR("while allocating memory\n");
> -                return NULL;
> -        }
> -        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;">—<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>