]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6296 --resolve mod_rayo: fixed crash on <prompt> bad request
authorChris Rienzo <chris@rienzo.com>
Tue, 4 Mar 2014 00:01:28 +0000 (19:01 -0500)
committerChris Rienzo <chris@rienzo.com>
Tue, 4 Mar 2014 00:01:47 +0000 (19:01 -0500)
src/mod/event_handlers/mod_rayo/rayo_prompt_component.c

index 654f5747280c41b57eff2a418f2c1643c37a3e6e..9cd946fc432fcbe3cd36a814128e97b9fc3cf028 100644 (file)
@@ -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;