1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-22 14:48:12 +00:00

Merge pull request #3829 from gogolovefish/master

Update gzlog.c
This commit is contained in:
Jens Steube 2023-08-15 21:44:39 +02:00 committed by GitHub
commit a802bff202
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -757,12 +757,15 @@ local int log_recover(struct log *log, int op)
}
if ((fd = open(log->path, O_RDONLY, 0)) < 0) {
log_log(log, op, ".add file read failure");
if (data != NULL)
free(data);
return -1;
}
ret = (size_t)read(fd, data, len) != len;
close(fd);
if (ret) {
log_log(log, op, ".add file read failure");
return -1;
}
log_log(log, op, "loaded .add file");