From ac4bea33679b53f137968fd3beafccb4ede0da5b Mon Sep 17 00:00:00 2001 From: Steven Noonan Date: Sat, 30 Aug 2014 05:58:06 -0700 Subject: [PATCH] timesyncd-manager: don't clear current_server_name if ServerAddress is NULL https://bugs.freedesktop.org/show_bug.cgi?id=83091 --- src/timesync/timesyncd-manager.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/timesync/timesyncd-manager.c b/src/timesync/timesyncd-manager.c index 9b8b7d3..0ab641c 100644 --- a/src/timesync/timesyncd-manager.c +++ b/src/timesync/timesyncd-manager.c @@ -766,7 +766,8 @@ void manager_set_server_address(Manager *m, ServerAddress *a) { if (m->current_server_address == a) return; - m->current_server_name = a ? a->name : NULL; + if (a) + m->current_server_name = a->name; m->current_server_address = a; manager_disconnect(m); -- 2.1.0