]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Only attempt to queue a hangup on the owner channel if it actually exists.
authorRussell Bryant <russell@russellbryant.com>
Tue, 19 Jun 2007 19:13:45 +0000 (19:13 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 19 Jun 2007 19:13:45 +0000 (19:13 +0000)
(issue #9795, patch from zandbelt)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@70084 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_gtalk.c

index 83dc19384ffc8d816681edd163577c2e1855f1e5..ee17113e33c970052dc6a6cb15bc52df30fdc8f1 100644 (file)
@@ -691,10 +691,10 @@ static int gtalk_hangup_farend(struct gtalk *client, ikspak *pak)
        if(!from)
                from = client->connection->jid->full;
 
-
        if (tmp) {
                tmp->alreadygone = 1;
-               ast_queue_hangup(tmp->owner);
+               if (tmp->owner)
+                       ast_queue_hangup(tmp->owner);
        } else
                ast_log(LOG_NOTICE, "Whoa, didn't find call!\n");
        gtalk_response(client, from, pak, NULL, NULL);