summaryrefslogtreecommitdiffstats
path: root/network/manager.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-04-16 13:26:16 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-04-16 13:26:16 +0000
commit3723149c0baab5f94d57221fa693e4d0ec19df6b (patch)
treedef35b5e41c91c82e37d5355508cff7ae632016c /network/manager.c
parente968bf544679fbf8565b2354cb4beac3641538e4 (diff)
network: missing append registered server paths to the list
Diffstat (limited to 'network/manager.c')
-rw-r--r--network/manager.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/network/manager.c b/network/manager.c
index f41d395e..78d69150 100644
--- a/network/manager.c
+++ b/network/manager.c
@@ -807,8 +807,11 @@ static void register_stored(void)
if (stat (filename, &s) == 0 && (s.st_mode & __S_IFREG)) {
snprintf(path, MAX_PATH_LENGTH,
NETWORK_PATH"/server/nap%d", net_uid++);
- server_register_from_file(connection, path,
- &src, BNEP_SVC_NAP, filename);
+
+ if (server_register_from_file(connection, path,
+ &src, BNEP_SVC_NAP, filename) == 0)
+ server_paths = g_slist_append(server_paths,
+ g_strdup(path));
}
/* GN objects */
@@ -816,8 +819,11 @@ static void register_stored(void)
if (stat (filename, &s) == 0 && (s.st_mode & __S_IFREG)) {
snprintf(path, MAX_PATH_LENGTH,
NETWORK_PATH"/server/gn%d", net_uid++);
- server_register_from_file(connection, path,
- &src, BNEP_SVC_GN, filename);
+
+ if (server_register_from_file(connection, path,
+ &src, BNEP_SVC_GN, filename) == 0)
+ server_paths = g_slist_append(server_paths,
+ g_strdup(path));
}
}