<p>Joshua Colp <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/6791">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Kevin Harwell: Looks good to me, but someone else must approve
Corey Farrell: Looks good to me, but someone else must approve
Richard Mudgett: Looks good to me, approved
Joshua Colp: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">tcptls: NULL-check the parameter of ast_ssl_teardown before accessing it.<br><br>This avoids a crash on stopping a chan_sip which failed to start its TLS server.<br><br>ASTERISK-27339 #close<br><br>Change-Id: I327fc70db68eaaca5b50a15c7fd687fde79263d5<br>---<br>M main/tcptls.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/main/tcptls.c b/main/tcptls.c<br>index dbcff9d..a25e25b 100644<br>--- a/main/tcptls.c<br>+++ b/main/tcptls.c<br>@@ -500,7 +500,7 @@<br> void ast_ssl_teardown(struct ast_tls_config *cfg)<br> {<br> #ifdef DO_SSL<br>- if (cfg->ssl_ctx) {<br>+ if (cfg && cfg->ssl_ctx) {<br> SSL_CTX_free(cfg->ssl_ctx);<br> cfg->ssl_ctx = NULL;<br> }<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6791">change 6791</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/6791"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I327fc70db68eaaca5b50a15c7fd687fde79263d5 </div>
<div style="display:none"> Gerrit-Change-Number: 6791 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Alexander Traud <pabstraud@compuserve.com> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>