]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_rayo: fix segfault in prompt component
authorChris Rienzo <chris.rienzo@grasshopper.com>
Thu, 6 Feb 2014 20:08:33 +0000 (15:08 -0500)
committerChris Rienzo <chris.rienzo@grasshopper.com>
Thu, 6 Feb 2014 20:08:51 +0000 (15:08 -0500)
src/mod/event_handlers/mod_rayo/rayo_prompt_component.c

index 9eec428eab45dd084305d4f6b686e365e2f70825..654f5747280c41b57eff2a418f2c1643c37a3e6e 100644 (file)
@@ -473,7 +473,7 @@ static iks *prompt_component_handle_result(struct rayo_actor *prompt, struct ray
                iks_insert_attrib(iq, "from", RAYO_JID(prompt));
                iks_insert_attrib(iq, "to", RAYO_COMPONENT(prompt)->client_jid);
                RAYO_SEND_REPLY_DUP(prompt, RAYO_COMPONENT(prompt)->client_jid, iq);
-       } else if (!strcmp(PROMPT_COMPONENT(prompt)->start_timers_request_id, id)) {
+       } else if (!zstr(PROMPT_COMPONENT(prompt)->start_timers_request_id) && !strcmp(PROMPT_COMPONENT(prompt)->start_timers_request_id, id)) {
                rayo_component_send_input_timers_started_event(RAYO_COMPONENT(prompt));
        }