From a711b7cd88f9f74397c2988ba397417163269b17 Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Thu, 22 Oct 2015 23:03:15 -0400 Subject: [PATCH] FS-8370 #resolve [mod_rayo] found another place in where a message was freed after being queued for delivery. This resulted in a freed object being serialized, crashing FS. --- 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 720a164d30..15add81d79 100644 --- a/src/mod/event_handlers/mod_rayo/rayo_prompt_component.c +++ b/src/mod/event_handlers/mod_rayo/rayo_prompt_component.c @@ -288,7 +288,7 @@ static iks *prompt_component_handle_input_error(struct rayo_actor *prompt, struc RAYO_SEND_REPLY(prompt, RAYO_COMPONENT(prompt)->client_jid, iq); /* done */ - iks_delete(PROMPT_COMPONENT(prompt)->iq); + PROMPT_COMPONENT(prompt)->iq = NULL; RAYO_RELEASE(prompt); RAYO_DESTROY(prompt);