Fix a small race condition in sip_tcp_locate().
authorRussell Bryant <russell@russellbryant.com>
Fri, 12 Dec 2008 18:33:27 +0000 (18:33 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 12 Dec 2008 18:33:27 +0000 (18:33 +0000)
commit4dde3803159e0bd64730ecbfd815c0f4add1d451
tree8376cc9817b8adfb42ed593a791568b2bd9d1786
parent4295303c56ec674a50ce63fb84eeec39a6671dff
Fix a small race condition in sip_tcp_locate().

We must increase the reference count on the tcptls_session _before_ unlocking
the thread list.

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