From: Miroslav Lichvar Date: Mon, 5 Dec 2016 09:21:34 +0000 (+0100) Subject: client: fix add command X-Git-Tag: 3.0-pre1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f757f09ceef43a0efb25258df75c5a0884992e6;p=thirdparty%2Fchrony.git client: fix add command The default version changed to 0 (autoselect). --- diff --git a/client.c b/client.c index 537c830b..c6127523 100644 --- a/client.c +++ b/client.c @@ -1087,7 +1087,7 @@ process_cmd_add_server_or_peer(CMD_Request *msg, char *line) opt_name = "offset"; else if (data.params.poll_target != SRC_DEFAULT_POLLTARGET) opt_name = "polltarget"; - else if (data.params.version != NTP_VERSION) + else if (data.params.version != 0) opt_name = "version"; else opt_name = NULL;