From 704310b6672d869217479c9c94fd55301035ea31 Mon Sep 17 00:00:00 2001 From: rizzo Date: Sat, 21 Jul 2007 09:35:48 +0000 Subject: [PATCH] whoops... was setting needdestroy on the wrong dialog. (spotted by a diff with my own branch) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76279 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/chan_sip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 1f3b27c2a..773f34004 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; }