]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Set maximum number of samples in manual list reply to 16
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 23 Jan 2014 09:55:12 +0000 (10:55 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 30 Jan 2014 14:59:45 +0000 (15:59 +0100)
In chronyd the maximum number of manual samples is 16, so there is no
need to keep room for 32 samples in the command reply. This limits the
maximum assumed size of the reply packet.

candm.h

diff --git a/candm.h b/candm.h
index 1ce3da9531b9c10783585f57de4b526b86c42d6a..dde526a81aa5aa9cbe9c1a30368bde480f3bf52d 100644 (file)
--- a/candm.h
+++ b/candm.h
@@ -587,7 +587,7 @@ typedef struct {
   RPY_ClientAccesses_Client clients[MAX_CLIENT_ACCESSES];
 } RPY_ClientAccessesByIndex;
 
-#define MAX_MANUAL_LIST_SAMPLES 32
+#define MAX_MANUAL_LIST_SAMPLES 16
 
 typedef struct {
   Timeval when;