projects
/
profile
/
ivi
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f35b3d6
)
Print an error if a network already exists
author
Marcel Holtmann
<marcel@holtmann.org>
Fri, 26 Jun 2009 10:43:45 +0000
(12:43 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Fri, 26 Jun 2009 10:43:45 +0000
(12:43 +0200)
src/service.c
patch
|
blob
|
history
diff --git
a/src/service.c
b/src/service.c
index
aa89d5d
..
68d1358
100644
(file)
--- a/
src/service.c
+++ b/
src/service.c
@@
-1176,6
+1176,11
@@
struct connman_service *__connman_service_create_from_network(struct connman_net
const char *ident, *group;
char *name;
+ if (__connman_service_lookup_from_network(network) != NULL) {
+ connman_error("Service already exists");
+ return NULL;
+ }
+
ident = __connman_network_get_ident(network);
if (ident == NULL)
return NULL;