diff --git a/Implementierung/src/io.c b/Implementierung/src/io.c index 4983811..00840d2 100644 --- a/Implementierung/src/io.c +++ b/Implementierung/src/io.c @@ -4,7 +4,6 @@ bool open_file(const char* path, FILE** file, struct stat* file_stat) { (*file) = fopen(path, "r"); if ((*file) == NULL) { printf("Fopen error: %d\n", errno); - fclose((*file)); return false; } diff --git a/Implementierung/src/md2_impls/md2_2.c b/Implementierung/src/md2_impls/md2_2.c index e250f05..b51a47a 100644 --- a/Implementierung/src/md2_impls/md2_2.c +++ b/Implementierung/src/md2_impls/md2_2.c @@ -47,7 +47,7 @@ void md2_hash_2(size_t len, const uint8_t buf[len], uint8_t out[16]) { FILE* file; struct stat file_stat; if (!open_file((char*)buf, &file, &file_stat)) { - fprintf(stderr, "Error opening the file!"); + fprintf(stderr, "Error opening the file!\n"); return; }