]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
nts: use signed lengths in NNA_DecryptAuthEF()
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 10 Oct 2022 10:43:40 +0000 (12:43 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 19 Oct 2022 13:50:39 +0000 (15:50 +0200)
Make the types consistent with the rest of the file.

nts_ntp_auth.c

index ac0763e0173a9d438794c40bad5febd469ac435b..78e54c293cf1efb0bc8f936a0f890625773d5272 100644 (file)
@@ -127,7 +127,7 @@ int
 NNA_DecryptAuthEF(NTP_Packet *packet, NTP_PacketInfo *info, SIV_Instance siv, int ef_start,
                   unsigned char *plaintext, int buffer_length, int *plaintext_length)
 {
-  unsigned int siv_tag_length, nonce_length, ciphertext_length;
+  int siv_tag_length, nonce_length, ciphertext_length;
   unsigned char *nonce, *ciphertext;
   int ef_type, ef_body_length;
   void *ef_body;