From: Miroslav Lichvar Date: Thu, 12 Nov 2009 14:06:40 +0000 (+0100) Subject: Check in chronyc that command in reply is same as requested X-Git-Tag: 1.24-pre1~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77e79e8359360ebc8b3bdf8bf2212b6644250623;p=thirdparty%2Fchrony.git Check in chronyc that command in reply is same as requested --- diff --git a/client.c b/client.c index 12578c8a..0521d9b4 100644 --- a/client.c +++ b/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++;