<p>N A has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/19509">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">tcptls: Prevent crash when freeing OpenSSL errors.<br><br>write_openssl_error_to_log has been erroneously<br>using ast_free instead of free, which will<br>cause a crash when MALLOC_DEBUG is enabled since<br>the memory was not allocated by Asterisk's memory<br>manager. This changes it to use the actual free<br>function directly to avoid this.<br><br>ASTERISK-30278 #close<br><br>Change-Id: Iac8b6468b718075809c45d8ad16b101af21a474d<br>---<br>M main/tcptls.c<br>1 file changed, 19 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/09/19509/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/main/tcptls.c b/main/tcptls.c</span><br><span>index b2756d1..dc25cb4 100644</span><br><span>--- a/main/tcptls.c</span><br><span>+++ b/main/tcptls.c</span><br><span>@@ -126,7 +126,7 @@</span><br><span>                ast_log(LOG_ERROR, "%.*s\n", (int) length, buffer);</span><br><span>        }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-   ast_free(buffer);</span><br><span style="color: hsl(120, 100%, 40%);">+     ast_std_free(buffer);</span><br><span> }</span><br><span> #endif</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/19509">change 19509</a>. To unsubscribe, or for help writing mail filters, 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/c/asterisk/+/19509"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 18 </div>
<div style="display:none"> Gerrit-Change-Id: Iac8b6468b718075809c45d8ad16b101af21a474d </div>
<div style="display:none"> Gerrit-Change-Number: 19509 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: N A <asterisk@phreaknet.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>