From 9afd19c29b3d8097a0a1b3df20e0bd1b1e0a6991 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 10 Oct 2022 12:43:40 +0200 Subject: [PATCH] nts: use signed lengths in NNA_DecryptAuthEF() Make the types consistent with the rest of the file. --- nts_ntp_auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nts_ntp_auth.c b/nts_ntp_auth.c index ac0763e..78e54c2 100644 --- a/nts_ntp_auth.c +++ b/nts_ntp_auth.c @@ -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;