From f48246344055b9cd708c1ec84bd1de89c1220b28 Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Thu, 6 Feb 2014 15:08:33 -0500 Subject: [PATCH] mod_rayo: fix segfault in prompt component --- src/mod/event_handlers/mod_rayo/rayo_prompt_component.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 9eec428eab..654f574728 100644 --- a/src/mod/event_handlers/mod_rayo/rayo_prompt_component.c +++ b/src/mod/event_handlers/mod_rayo/rayo_prompt_component.c @@ -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)); }