Check in chronyc that command in reply is same as requested
This commit is contained in:
parent
e88af337cd
commit
77e79e8359
1 changed files with 2 additions and 1 deletions
3
client.c
3
client.c
|
@ -1320,7 +1320,8 @@ submit_request(CMD_Request *request, CMD_Reply *reply, int *reply_auth_ok)
|
|||
bad_header = ((reply->version != PROTO_VERSION_NUMBER) ||
|
||||
(reply->pkt_type != PKT_TYPE_CMD_REPLY) ||
|
||||
(reply->res1 != 0) ||
|
||||
(reply->res2 != 0));
|
||||
(reply->res2 != 0) ||
|
||||
(reply->command != request->command));
|
||||
|
||||
if (bad_header) {
|
||||
n_attempts++;
|
||||
|
|
Loading…
Reference in a new issue