projects
/
connman
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
273799e
)
Fix error handling of init routine
author
Marcel Holtmann
<marcel@holtmann.org>
Mon, 15 Dec 2008 03:09:20 +0000
(
04:09
+0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Mon, 15 Dec 2008 03:09:20 +0000
(
04:09
+0100)
plugins/dnsproxy.c
patch
|
blob
|
history
diff --git
a/plugins/dnsproxy.c
b/plugins/dnsproxy.c
index
bc61d51
..
39eefec
100644
(file)
--- a/
plugins/dnsproxy.c
+++ b/
plugins/dnsproxy.c
@@
-368,12
+368,10
@@
static int dnsproxy_init(void)
return err;
err = connman_resolver_register(&dnsproxy_resolver);
- if (err < 0) {
+ if (err < 0)
destroy_listener();
- return err;
- }
- return 0;
+ return err;
}
static void dnsproxy_exit(void)