projects
/
connman
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75a6e88
)
Don't unregister elements that are not valid
author
Marcel Holtmann
<marcel@holtmann.org>
Mon, 30 Jun 2008 06:29:10 +0000
(08:29 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Mon, 30 Jun 2008 06:29:10 +0000
(08:29 +0200)
plugins/dhclient.c
patch
|
blob
|
history
diff --git
a/plugins/dhclient.c
b/plugins/dhclient.c
index
1802259
..
3a06e3e
100644
(file)
--- a/
plugins/dhclient.c
+++ b/
plugins/dhclient.c
@@
-216,9
+216,11
@@
static void dhclient_remove(struct connman_element *element)
task_list = g_slist_remove(task_list, task);
g_static_mutex_unlock(&task_mutex);
- connman_element_unregister(task->child);
- connman_element_unref(task->child);
- task->child = NULL;
+ if (task->child != NULL) {
+ connman_element_unregister(task->child);
+ connman_element_unref(task->child);
+ task->child = NULL;
+ }
kill_task(task);
}