From: Luigi Rizzo Date: Sat, 21 Jul 2007 09:35:48 +0000 (+0000) Subject: whoops... was setting needdestroy on the wrong dialog. X-Git-Tag: 1.6.0-beta1~3^2~1978 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed604a6df85998e794b1c88e2efc811e9d5e3cf0;p=thirdparty%2Fasterisk.git whoops... was setting needdestroy on the wrong dialog. (spotted by a diff with my own branch) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@76279 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 1f3b27c2a4..773f340043 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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; }