Fix worker thread resource leak in SIP TCP/TLS.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 24 Feb 2012 18:33:04 +0000 (18:33 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 24 Feb 2012 18:33:04 +0000 (18:33 +0000)
commitebe2c33b7239b2881007efa3efd8d8a859f0b653
tree1ea2be16f26726b316809648cdd7f71fe24239ba
parent8e1f841dde99b00e0581e8d5f2859bc503d70aed
Fix worker thread resource leak in SIP TCP/TLS.

The SIP TCP/TLS worker threads were created joinable but noone could join
them if they died on their own.

* Fix the SIP TCP/TLS worker threads to not be created joinable.

* _sip_tcp_helper_thread() only needs one parameter since the pvt
parameter is only passed in as NULL and never used.

(closes issue ASTERISK-19203)
Reported by: Steve Davies

Review: https://reviewboard.asterisk.org/r/1714/
........

Merged revisions 356677 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 356690 from http://svn.asterisk.org/svn/asterisk/branches/10

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