Skip to content
Snippets Groups Projects
Commit 0e669712 authored by Chris-Savinovich's avatar Chris-Savinovich Committed by Christian Savinovich
Browse files

chan_dahdi.c: crash in chan_dahdi

Fixes a crash in chan_dahdi occurring on 32-bit systems. A previous
patch introduced a variable of type unassigned long long which is 64-bits.
Casting it as 'ast_json_int_t' along with JSON type 'I' makes it work
with 32-bit systems.

ASTERISK-28457

Change-Id: I9cef6b5f2d826fc5c93f2f6a1c997c4e3e6c93fe
parent ad720add
No related branches found
No related tags found
No related merge requests found
......@@ -1766,8 +1766,8 @@ static void publish_dahdichannel(struct ast_channel *chan, ast_group_t group, in
 
ast_assert(dahdi_channel != NULL);
 
blob = ast_json_pack("{s: i, s: i, s: s}",
"group", group,
blob = ast_json_pack("{s: I, s: i, s: s}",
"group", (ast_json_int_t)group,
"span", span,
"channel", dahdi_channel);
if (!blob) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment