commit | 7b945b3f72fe0f97674e5b62f932a8f94f01b21b | [log] [tgz] |
---|---|---|
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | Thu Jun 23 13:59:55 2016 +0300 |
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | Thu Jun 23 15:10:40 2016 +0300 |
tree | d8b76666432e9be93524f918cf7a94f40215a4c3 | |
parent | 3e15a874c42ea8006ccb7b394f71238fc32d88a1 [diff] |
core/device: Don't even attempt to load name if address is private Device with private address does not have their name stored so it makes not sense to attempt to load their names.
diff --git a/src/device.c b/src/device.c index 83a794e..5506bc9 100644 --- a/src/device.c +++ b/src/device.c
@@ -2655,6 +2655,9 @@ char *str = NULL; int len; + if (device_address_is_private(device)) + return NULL; + snprintf(filename, PATH_MAX, STORAGEDIR "/%s/cache/%s", local, peer); key_file = g_key_file_new();