Skip to content
Snippets Groups Projects
Commit 3ccd8ef8 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix copy/paste bug discovered/reported by gcc version 11.2.0

... in debug print statement (MD5 hast decoded/printed as SHA-1 hash).

Reported by Nelgin running gcc version 11.2.0 (Ubuntu 11.2.0-19ubuntu1)
parent 0518ac10
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3085 passed
......@@ -514,7 +514,7 @@ int main(int argc, char **argv)
if(hashes[h]->flags&SMB_HASH_MD5)
printf("%-10s: %s\n", "MD5", MD5_hex(str,hashes[h]->data.md5));
if(hashes[h]->flags&SMB_HASH_SHA1)
printf("%-10s: %s\n", "SHA-1", SHA1_hex(str,hashes[h]->data.md5));
printf("%-10s: %s\n", "SHA-1", SHA1_hex(str,hashes[h]->data.sha1));
#endif
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment