<p></p>
<p dir="auto">Hmm, a little bit strange, because t_unref() has safety checks at the beginning:</p>
<div class="highlight highlight-source-c"><pre><span class="pl-k">int</span> <span class="pl-en">t_unref</span>( <span class="pl-k">struct</span> sip_msg* p_msg  )
{
        <span class="pl-k">enum</span> kill_reason kr;

        <span class="pl-k">if</span> (T==T_UNDEFINED || T==T_NULL_CELL)
                <span class="pl-k">return</span> -<span class="pl-c1">1</span>;
...</pre></div>
<p dir="auto"><code class="notranslate">T</code> being a local global cannot be overwritten by another process...</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/3156#issuecomment-1181698261">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJEFJSJALLPOG3CEHTVTVQBNANCNFSM5ZIRRXFA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZNFNHSCKVZFR6ICXO3VTVQBNA5CNFSM5ZIRRXFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIZXURVI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><kamailio/kamailio/issues/3156/1181698261</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/3156#issuecomment-1181698261",
"url": "https://github.com/kamailio/kamailio/issues/3156#issuecomment-1181698261",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>