tcptls: NULL-check the parameter of ast_ssl_teardown before accessing it.
authorAlexander Traud <pabstraud@compuserve.com>
Fri, 13 Oct 2017 13:12:07 +0000 (15:12 +0200)
committerAlexander Traud <pabstraud@compuserve.com>
Fri, 13 Oct 2017 13:12:07 +0000 (15:12 +0200)
commit44d9446eb5002f59a64ada561b9732064da64aaf
tree6965af5f4d78e0c508d55741eee6e1dbc571f63f
parentacf686e6a56fdddfe0921913302aa55d23feead3
tcptls: NULL-check the parameter of ast_ssl_teardown before accessing it.

This avoids a crash on stopping a chan_sip which failed to start its TLS server.

ASTERISK-27339 #close

Change-Id: I327fc70db68eaaca5b50a15c7fd687fde79263d5
main/tcptls.c