Skip to content
Snippets Groups Projects
Commit deaa3742 authored by Ben Ford's avatar Ben Ford Committed by Joshua Colp
Browse files

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
parent 1f78ee9d
Branches
Tags
3 merge requests!138Merge branch asterisk-20.3.0 into devel properly,!123Merge asterisk '20.3.0' into devel,!118Draft: manager: AOC-S support for AOCMessage
...@@ -41,7 +41,7 @@ struct curl_cb_data *curl_cb_data_create(void) ...@@ -41,7 +41,7 @@ struct curl_cb_data *curl_cb_data_create(void)
{ {
struct curl_cb_data *data; struct curl_cb_data *data;
data = ast_calloc(1, sizeof(data)); data = ast_calloc(1, sizeof(*data));
return data; return data;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment