Skip to contentSkip to conversation

stk: Make sure to reset respond_on_exit.

PATCH In review Andrzej Zaborowski 2 participants 2 messages Feb 28, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 stk: Make sure to reset respond_on_exit.

This fixes a crash spotted by Lasse Kunnasluoto documented at
http://lists.ofono.org/pipermail/ofono/2011-February/009211.html

---
 src/stk.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
src/stk.c +1 -0
index bc46b2f..c4e988b 100644
@@ -2514,6 +2514,7 @@ static void stk_proactive_command_cancel(struct ofono_stk *stk)
 		stk_command_free(stk->pending_cmd);
 		stk->pending_cmd = NULL;
 		stk->cancel_cmd = NULL;
+		stk->respond_on_exit = FALSE;
 	}
 }
 
Signature · 1 line
1.7.1.86.g0e460.dirty