]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
ntp: fix address in error message
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 21 Apr 2021 13:56:51 +0000 (15:56 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 22 Apr 2021 08:20:31 +0000 (10:20 +0200)
ntp_sources.c

index ba4860792ece74162051b794a3c23e42e8d989b6..02c7edae57b4dea3bd3c714a7cf2edae1064602d 100644 (file)
@@ -458,7 +458,7 @@ handle_saved_address_update(void)
     /* This is expected to happen only if the old address is wrong */
     LOG(LOGS_ERR, "Could not change %s to %s",
         UTI_IPSockAddrToString(&saved_address_update.old_address),
-        UTI_IPSockAddrToString(&saved_address_update.old_address));
+        UTI_IPSockAddrToString(&saved_address_update.new_address));
 
   saved_address_update.old_address.ip_addr.family = IPADDR_UNSPEC;
 }