]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
whoops... was setting needdestroy on the wrong dialog.
authorLuigi Rizzo <rizzo@icir.org>
Sat, 21 Jul 2007 09:35:48 +0000 (09:35 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Sat, 21 Jul 2007 09:35:48 +0000 (09:35 +0000)
(spotted by a diff with my own branch)

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

channels/chan_sip.c

index 1f3b27c2a45064b3942fe008950f8e6cf9f03005..773f340043a75485cc2c2b6dd826f55a88470f00 100644 (file)
@@ -15550,7 +15550,7 @@ static int handle_request_subscribe(struct sip_pvt *p, struct sip_request *req,
                                if (!strcmp(p_old->username, p->username)) {
                                        if (!strcmp(p_old->exten, p->exten) &&
                                            !strcmp(p_old->context, p->context)) {
-                                               p->needdestroy = 1;
+                                               p_old->needdestroy = 1;
                                                sip_pvt_unlock(p_old);
                                                break;
                                        }