]> git.ipfire.org Git - thirdparty/chrony.git/commit
nts: avoid assumption about cookie record
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 27 Apr 2021 13:39:59 +0000 (15:39 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 29 Apr 2021 07:44:32 +0000 (09:44 +0200)
commitd01cb5af46caedb8a4a6529c8b80eef9976cef8d
tree7872ee77dc83eefb6eaa5d4dbadafbe687df1642
parent7925ed39b81f394083e939c96d18a652f977d315
nts: avoid assumption about cookie record

The cookie record is currently assumed to be the longest record that
needs to be accepted by the client, but that does not have to be always
the case. Define the processing buffer using the maximum body record
constant instead and add an assertion to make sure it's not smaller than
the maximum accepted cookie length.
nts_ke_client.c