projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83bab16
)
Fix: Don't allow cancelation of command id 0
author
Denis Kenzior
<denkenz@gmail.com>
Wed, 2 Dec 2009 21:26:56 +0000
(15:26 -0600)
committer
Marcel Holtmann
<marcel@holtmann.org>
Thu, 3 Dec 2009 01:16:20 +0000
(
02:16
+0100)
gatchat/gatchat.c
patch
|
blob
|
history
diff --git
a/gatchat/gatchat.c
b/gatchat/gatchat.c
index
04995cc
..
1dffd89
100644
(file)
--- a/
gatchat/gatchat.c
+++ b/
gatchat/gatchat.c
@@
-1192,6
+1192,10
@@
gboolean g_at_chat_cancel(GAtChat *chat, guint id)
if (chat == NULL || chat->command_queue == NULL)
return FALSE;
+ /* We use id 0 for wakeup commands */
+ if (id == 0)
+ return FALSE;
+
l = g_queue_find_custom(chat->command_queue, GUINT_TO_POINTER(id),
at_command_compare_by_id);