Audit improper usage of scheduler exposed by 5c713fdf18f.
authorRichard Mudgett <rmudgett@digium.com>
Tue, 24 Nov 2015 18:44:53 +0000 (12:44 -0600)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 1 Dec 2015 19:54:04 +0000 (13:54 -0600)
commitfa2072903238ddb8dbba7d75ccf70edb36581f36
treecbf6fd65a2b2cd3bd9ba5f78ad7f71ba3f1547eb
parente5723d27763b85b66972a275cd90f4a592bcc21f
Audit improper usage of scheduler exposed by 5c713fdf18f.

channels/chan_iax2.c:
* Initialize struct chan_iax2_pvt scheduler ids earlier because of
iax2_destroy_helper().

channels/chan_sip.c:
channels/sip/config_parser.c:
* Fix initialization of scheduler id struct members.  Some off nominal
paths had 0 as a scheduler id to be destroyed when it was never started.

chan_skinny.c:
* Fix some scheduler id comparisons that excluded the valid 0 id.

channel.c:
* Fix channel initialization of the video stream scheduler id.

pbx_dundi.c:
* Fix channel initialization of the packet retransmission scheduler id.

ASTERISK-25476

Change-Id: I07a3449f728f671d326a22fcbd071f150ba2e8c8
channels/chan_iax2.c
channels/chan_sip.c
channels/chan_skinny.c
channels/sip/config_parser.c
main/channel.c
pbx/pbx_dundi.c