]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 114045 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Thu, 10 Apr 2008 19:58:36 +0000 (19:58 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 10 Apr 2008 19:58:36 +0000 (19:58 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114045 | mmichelson | 2008-04-10 14:55:33 -0500 (Thu, 10 Apr 2008) | 6 lines

Be sure that we're not about to set bridgepvt NULL prior to dereferencing it.

(closes issue #11775)
Reported by: fujin

........

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

channels/chan_sip.c

index 4d0bbf8410209483f0ffbbaad22e3d73ea78451c..cf758c49ee1a123bc98adf8ac648c9c0519f9e22 100644 (file)
@@ -16796,7 +16796,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int
                                struct ast_channel *bridgepeer = NULL;
                                struct sip_pvt *bridgepvt = NULL;
                                if ((bridgepeer = ast_bridged_channel(p->owner))) {
-                                       if (IS_SIP_TECH(bridgepeer->tech)) {
+                                       if (IS_SIP_TECH(bridgepeer->tech) && !ast_check_hangup(bridgepeer)) {
                                                bridgepvt = (struct sip_pvt*)bridgepeer->tech_pvt;
                                                /* Does the bridged peer have T38 ? */
                                                if (bridgepvt->t38.state == T38_ENABLED) {