3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 09:39:25 +01:00

client: Open private bus connection if available

This commit is contained in:
Marcel Holtmann 2014-05-20 23:08:14 -07:00
parent f299d96e77
commit 74b14e1791

View File

@ -45,10 +45,18 @@ int main(int argc, char *argv[])
l_debug("Bus location: %s", bus_name); l_debug("Bus location: %s", bus_name);
if (!kdbus_open_bus(bus_name, NULL, "iwctl")) {
exit_status = EXIT_FAILURE;
goto destroy;
}
exit_status = EXIT_SUCCESS; exit_status = EXIT_SUCCESS;
destroy:
l_free(bus_name); l_free(bus_name);
kdbus_close_bus();
done: done:
return exit_status; return exit_status;
} }