fix issues with ecrypt_check

This commit is contained in:
Liam Waldron 2023-05-31 13:23:16 -04:00
parent f474115853
commit 1f059adb26

View File

@ -74,6 +74,9 @@ ecrypt_check(char *firstkey, char *secondkey)
fseek(key2, 0, SEEK_END); fseek(key2, 0, SEEK_END);
cnt1 = ftell(key2); cnt1 = ftell(key2);
fseek(key1, 0, SEEK_SET);
fseek(key2, 0, SEEK_SET);
if (cnt1 != cnt2) { if (cnt1 != cnt2) {
printf("no match\n"); printf("no match\n");
return 1; return 1;