From: Ben Ford Date: Mon, 20 Jul 2020 18:05:43 +0000 (-0500) Subject: res_stir_shaken: Fix memory allocation error in curl.c X-Git-Tag: 19.0.0-rc1~355 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=deaa3742dc998e38369d34bfc308d84e9036dcba;p=thirdparty%2Fasterisk.git 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 --- 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; }