From a598983f9b59de2303755850594e831e2f440eef Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Wed, 10 Feb 2021 12:16:18 +0100 Subject: [PATCH] client: fix sourcename command to accept ID addresses Fix the command to print the name corresponding to an unresolved address. --- client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.c b/client.c index f365f39..f12511b 100644 --- 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; }