]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_stir_shaken: Fix memory allocation error in curl.c
authorBen Ford <bford@digium.com>
Mon, 20 Jul 2020 18:05:43 +0000 (13:05 -0500)
committerJoshua Colp <jcolp@sangoma.com>
Wed, 5 Aug 2020 10:01:35 +0000 (05:01 -0500)
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

index 634c2bf68ac6161457bd69420c4e63a496014ba7..ab29e3d833d9f46e2e59213b5253260a2ecfd46d 100644 (file)
@@ -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;
 }