From: Richard Mudgett Date: Mon, 11 Oct 2010 18:39:06 +0000 (+0000) Subject: Make exit from handle_request_do() consistent. X-Git-Tag: 1.6.2.15-rc1~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8e8ddd171289fdd0036569e5535419239ca5566;p=thirdparty%2Fasterisk.git Make exit from handle_request_do() consistent. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@291111 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 36f758439d..26872d7e12 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -22226,8 +22226,8 @@ static int handle_request_do(struct sip_request *req, struct sockaddr_in *sin) if (p->owner && !nounlock) ast_channel_unlock(p->owner); sip_pvt_unlock(p); - ast_mutex_unlock(&netlock); ao2_t_ref(p, -1, "throw away dialog ptr from find_call at end of routine"); /* p is gone after the return */ + ast_mutex_unlock(&netlock); return 1; }