]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Make exit from handle_request_do() consistent.
authorRichard Mudgett <rmudgett@digium.com>
Mon, 11 Oct 2010 18:39:06 +0000 (18:39 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 11 Oct 2010 18:39:06 +0000 (18:39 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@291111 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 36f758439d15e58fad3093e7dd8822c848f45590..26872d7e12b35674286dedc288022cdbad5a1865 100644 (file)
@@ -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;
 }