]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
client: fix sourcename command to accept ID addresses
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 10 Feb 2021 11:16:18 +0000 (12:16 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 11 Feb 2021 15:13:39 +0000 (16:13 +0100)
Fix the command to print the name corresponding to an unresolved
address.

client.c

index f365f39858006338dc54e50735be15fe37c5e1ed..f12511b993c8cc4973b42bfda4366fa35eb55bd2 100644 (file)
--- a/client.c
+++ b/client.c
@@ -2086,7 +2086,7 @@ process_cmd_sourcename(char *line)
   IPAddr ip_addr;
   char name[256];
 
-  if (!UTI_StringToIP(line, &ip_addr)) {
+  if (!parse_source_address(line, &ip_addr)) {
     LOG(LOGS_ERR, "Could not read address");
     return 0;
   }