aescbc: flush before exit and report an error (if any)

This commit is contained in:
Sigrid Solveig Haflínudóttir 2021-11-25 21:42:12 +00:00
parent e2a8d3493a
commit add3a0a4da

View file

@ -146,6 +146,8 @@ main(int argc, char **argv)
sysfatal("decrypted file failed to authenticate");
}
}
exits("");
if(Bflush(&bout) != 0)
sysfatal("write: %r");
exits(nil);
return 1; /* keep other compilers happy */
}