From de23cb4002273d7f2e8b6462c72f52cf2c13d171 Mon Sep 17 00:00:00 2001 From: Ben Ford <bford@digium.com> Date: Mon, 20 Jul 2020 13:05:43 -0500 Subject: [PATCH] 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 (cherry picked from commit deaa3742dc998e38369d34bfc308d84e9036dcba) --- res/res_stir_shaken/curl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/res_stir_shaken/curl.c b/res/res_stir_shaken/curl.c index 634c2bf68a..ab29e3d833 100644 --- a/res/res_stir_shaken/curl.c +++ b/res/res_stir_shaken/curl.c @@ -41,7 +41,7 @@ struct curl_cb_data *curl_cb_data_create(void) { struct curl_cb_data *data; - data = ast_calloc(1, sizeof(data)); + data = ast_calloc(1, sizeof(*data)); return data; } -- GitLab