<p></p>
<p>The timer for keepalive is stopped, but here it seems to come a pointer which was stored inside sip transaction structure and used when the transaction completes (on 408 timeout or 200ok response). If between the options and final response the ka destination structure is destroyed, then the tm callback will provide a pointer to an address that can be used for something else at that moment.</p>
<p>In such case it is better to store in transaction a unique id for ka destination structure and on tm transaction callback to search and see if it is found, locking the structure while is updated.</p>

<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/issues/2448#issuecomment-683740148">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZKMYZDGIF4Y77K7BW3SDOHQZANCNFSM4QE75I5Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZMASI3RO65S6TXPPMDSDOHQZA5CNFSM4QE75I52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFDAQX5A.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2448#issuecomment-683740148",
"url": "https://github.com/kamailio/kamailio/issues/2448#issuecomment-683740148",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>