<p>Benjamin Keith Ford has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/14685">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_stir_shaken: Fix memory allocation error in curl.c<br><br>Fixed a memory allocation that was not passing in the correct size for<br>the struct in curl.c.<br><br>Change-Id: I5fb92fbbe84b075fa6aefa2423786df80e114c3a<br>---<br>M res/res_stir_shaken/curl.c<br>1 file changed, 1 insertion(+), 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/85/14685/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/res_stir_shaken/curl.c b/res/res_stir_shaken/curl.c</span><br><span>index 634c2bf..ab29e3d 100644</span><br><span>--- a/res/res_stir_shaken/curl.c</span><br><span>+++ b/res/res_stir_shaken/curl.c</span><br><span>@@ -41,7 +41,7 @@</span><br><span> {</span><br><span>     struct curl_cb_data *data;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-  data = ast_calloc(1, sizeof(data));</span><br><span style="color: hsl(120, 100%, 40%);">+   data = ast_calloc(1, sizeof(*data));</span><br><span> </span><br><span>     return data;</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/14685">change 14685</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/+/14685"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I5fb92fbbe84b075fa6aefa2423786df80e114c3a </div>
<div style="display:none"> Gerrit-Change-Number: 14685 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Benjamin Keith Ford <bford@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>