From: Chris Rienzo Date: Tue, 4 Mar 2014 00:01:28 +0000 (-0500) Subject: FS-6296 --resolve mod_rayo: fixed crash on bad request X-Git-Tag: v1.2.23~33^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3072573c8414ce8bcdd878932792cbb4695088dc;p=thirdparty%2Ffreeswitch.git FS-6296 --resolve mod_rayo: fixed crash on bad request --- diff --git a/src/mod/event_handlers/mod_rayo/rayo_prompt_component.c b/src/mod/event_handlers/mod_rayo/rayo_prompt_component.c index 654f574728..9cd946fc43 100644 --- a/src/mod/event_handlers/mod_rayo/rayo_prompt_component.c +++ b/src/mod/event_handlers/mod_rayo/rayo_prompt_component.c @@ -312,7 +312,7 @@ static iks *prompt_component_handle_input_error(struct rayo_actor *prompt, struc iks_insert_attrib(iq, "from", RAYO_JID(RAYO_COMPONENT(prompt)->parent)); iks_insert_attrib(iq, "to", RAYO_COMPONENT(prompt)->client_jid); iks_insert_node(iq, iks_copy_within(error, iks_stack(iq))); - PROMPT_COMPONENT(prompt)->complete = iq; + PROMPT_COMPONENT(prompt)->complete = iks_copy(iq); rayo_component_send_stop(prompt, PROMPT_COMPONENT(prompt)->output_jid); break;