projects
/
platform
/
upstream
/
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 aa89d5da6313effc99c6e8c536bd50270995b245..68d1358941be4fd1bfc9c52a72bf605cd6240682 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;