summaryrefslogtreecommitdiffstats
path: root/network/manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'network/manager.c')
-rw-r--r--network/manager.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/network/manager.c b/network/manager.c
index ace1f602..1cbb9c70 100644
--- a/network/manager.c
+++ b/network/manager.c
@@ -414,9 +414,11 @@ static void default_adapter_reply(DBusPendingCall *call, void *data)
pr->adapter_path = g_strdup(adapter);
- if (pr->id == BNEP_SVC_PANU && (get_handles(pr, pan_handle_reply) < 0)) {
- err_failed(pr->conn, pr->msg, "D-Bus path registration failed");
- goto fail;
+ if (pr->addr) {
+ if (get_handles(pr, pan_handle_reply) < 0) {
+ err_failed(pr->conn, pr->msg, "D-Bus path registration failed");
+ goto fail;
+ }
} else if (get_address(pr, get_address_reply) < 0) {
err_failed(pr->conn, pr->msg, "D-Bus path registration failed");
goto fail;