mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 19:43:03 +00:00
Fix a segfault with the calls that need to register with the remote gateway (eg: when asterisk has to send REGISTER message in order to place a call)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1190 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -844,6 +844,9 @@ static void __sip_destroy(struct sip_pvt *p, int lockowner)
|
||||
free_old_route(p->route);
|
||||
p->route = NULL;
|
||||
}
|
||||
if (p->registry) {
|
||||
p->registry->call=NULL;
|
||||
}
|
||||
/* Unlink us from the owner if we have one */
|
||||
if (p->owner) {
|
||||
if (lockowner)
|
||||
|
||||
Reference in New Issue
Block a user