diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-09-28 13:37:54 +0000 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-09-28 13:37:54 +0000 |
commit | a558e0071fe657965e0b3928d72fd2318aa03087 (patch) | |
tree | cc65535e506a13d35ad6afffe4dd1e5b4780d767 /network/server.c | |
parent | b9b690ea90c9aa0519f4d86eb1e82f7198d710f2 (diff) |
Fix problem with server storage.
Diffstat (limited to 'network/server.c')
-rw-r--r-- | network/server.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/network/server.c b/network/server.c index 6ac7789f..702c8fb3 100644 --- a/network/server.c +++ b/network/server.c @@ -1139,6 +1139,7 @@ int server_register(const char *path, bdaddr_t *src, uint16_t id) ns->name = g_strdup("BlueZ PANU service"); ns->path = g_strdup(path); + ns->id = id; bacpy(&ns->src, src); info("Registered server path:%s", path); @@ -1205,8 +1206,10 @@ int server_store(const char *path) char addr[18]; if (!dbus_connection_get_object_user_data(connection, - path, (void *) &ns)) + path, (void *) &ns)) { + error("Unable to salve %s on storage", path); return -ENOENT; + } ba2str(&ns->src, addr); if (ns->id == BNEP_SVC_NAP) |