From 0d7c97275f921b081dd20ba79b827312f4b4d87d Mon Sep 17 00:00:00 2001 From: kaotisk Date: Tue, 29 Apr 2025 04:35:54 +0300 Subject: Both missing or one of those --- c_implementation/src/ak_fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'c_implementation') diff --git a/c_implementation/src/ak_fs.c b/c_implementation/src/ak_fs.c index 3c620fc..4d9d214 100644 --- a/c_implementation/src/ak_fs.c +++ b/c_implementation/src/ak_fs.c @@ -307,7 +307,7 @@ int ak_fs_cat_file_from_root_hash(sha512sum* rh) fclose(fd); char h1[129] = {0}; char h2[129] = {0}; - if ( buffer[128] != '\n' && buffer[257] != '\n' ) + if ( buffer[128] != '\n' || buffer[257] != '\n' ) { ak_log_error(__func__, "Unknown format"); return 2; -- cgit v1.2.3