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:
Martin Pycko
2003-07-15 05:05:19 +00:00
parent 546e9d3ecc
commit 09a80571a5

View File

@@ -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)