mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2025-10-20 02:43:16 +00:00
Use abstracted stat calls
This commit is contained in:
parent
ae5e5b0e35
commit
ac81e04d34
1 changed files with 2 additions and 2 deletions
|
@ -181,7 +181,7 @@ unsigned char *cl_hash_file_fd_ctx(EVP_MD_CTX *ctx, int fd, unsigned int *olen)
|
|||
unsigned char *hash;
|
||||
int mdsz;
|
||||
unsigned int hashlen;
|
||||
struct stat sb;
|
||||
STATBUF sb;
|
||||
|
||||
unsigned int blocksize;
|
||||
|
||||
|
@ -193,7 +193,7 @@ unsigned char *cl_hash_file_fd_ctx(EVP_MD_CTX *ctx, int fd, unsigned int *olen)
|
|||
|
||||
mdsz = EVP_MD_CTX_size(ctx);
|
||||
|
||||
if (fstat(fd, &sb) < 0) {
|
||||
if (FSTAT(fd, &sb) < 0) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue