From 03016a1979ad0adde298763e07c2e63779ae6739 Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Tue, 12 Jul 2022 22:35:13 +0200 Subject: [PATCH] Fix: close file --- Implementierung/src/md2_impls/md2_2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Implementierung/src/md2_impls/md2_2.c b/Implementierung/src/md2_impls/md2_2.c index f8d54d8..f1ab4b6 100644 --- a/Implementierung/src/md2_impls/md2_2.c +++ b/Implementierung/src/md2_impls/md2_2.c @@ -74,6 +74,8 @@ void md2_hash_2(size_t len, const uint8_t buf[len], uint8_t out[16]) { bytes_left_to_read -= bytes_left_to_process; }; + fclose(file); + apply_padding(bytes_left_to_process % 16, data); process_block_checksum(data, checksum, &l); process_block_hash(data, messageDigestBuf);