mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 08:45:07 -05:00
cmdmon: fix data field name in handle_ntp_source_name()
Fixes: 93f6358916 ("cmdmon: add request to get source name")
This commit is contained in:
2
cmdmon.c
2
cmdmon.c
@@ -1211,7 +1211,7 @@ handle_ntp_source_name(CMD_Request *rx_message, CMD_Reply *tx_message)
|
|||||||
IPAddr addr;
|
IPAddr addr;
|
||||||
char *name;
|
char *name;
|
||||||
|
|
||||||
UTI_IPNetworkToHost(&rx_message->data.ntp_data.ip_addr, &addr);
|
UTI_IPNetworkToHost(&rx_message->data.ntp_source_name.ip_addr, &addr);
|
||||||
name = NSR_GetName(&addr);
|
name = NSR_GetName(&addr);
|
||||||
|
|
||||||
if (!name) {
|
if (!name) {
|
||||||
|
|||||||
Reference in New Issue
Block a user