*
* Get the md5 hash of a file. The result is put in
* the 16 bytes buffer @digest .
+ *
+ * If an IO error happens the value in @digest is not updated.
**/
void
mono_md5_get_digest_from_file (const gchar *filename, guchar digest[16])
if (ferror(fp)) {
fclose(fp);
return;
+ } else {
+ fclose(fp);
}
mono_md5_final (&ctx, digest);