[Asterisk-code-review] res_stir_shaken: Fix memory allocation error in curl.c (asterisk[master])
Joshua Colp
asteriskteam at digium.com
Tue Aug 4 09:43:34 CDT 2020
Joshua Colp has submitted this change. ( https://gerrit.asterisk.org/c/asterisk/+/14685 )
Change subject: res_stir_shaken: Fix memory allocation error in curl.c
......................................................................
res_stir_shaken: Fix memory allocation error in curl.c
Fixed a memory allocation that was not passing in the correct size for
the struct in curl.c.
Change-Id: I5fb92fbbe84b075fa6aefa2423786df80e114c3a
---
M res/res_stir_shaken/curl.c
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Joshua Colp: Looks good to me, approved; Approved for Submit
Sean Bright: Looks good to me, but someone else must approve
diff --git a/res/res_stir_shaken/curl.c b/res/res_stir_shaken/curl.c
index 634c2bf..ab29e3d 100644
--- a/res/res_stir_shaken/curl.c
+++ b/res/res_stir_shaken/curl.c
@@ -41,7 +41,7 @@
{
struct curl_cb_data *data;
- data = ast_calloc(1, sizeof(data));
+ data = ast_calloc(1, sizeof(*data));
return data;
}
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/14685
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I5fb92fbbe84b075fa6aefa2423786df80e114c3a
Gerrit-Change-Number: 14685
Gerrit-PatchSet: 2
Gerrit-Owner: Benjamin Keith Ford <bford at digium.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Sean Bright <sean.bright at gmail.com>
Gerrit-CC: George Joseph <gjoseph at digium.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200804/c1b69ba0/attachment.html>
More information about the asterisk-code-review
mailing list