Change errmsg to dbgmsg when skipping imphash on PE with no imports

pull/111/head
Andrew 6 years ago committed by Micah Snyder
parent f212a6365a
commit e969151915
  1. 4
      libclamav/pe.c

@ -2423,8 +2423,10 @@ static unsigned int hash_imptbl(cli_ctx *ctx, unsigned char **digest, uint32_t *
unsigned int err;
int first = 1;
/* If the PE doesn't have an import table then skip it. This is an
* uncommon case but can happen. */
if (peinfo->dirs[1].VirtualAddress == 0 || peinfo->dirs[1].Size == 0) {
cli_errmsg("scan_pe: import table data directory does not exist\n");
cli_dbgmsg("scan_pe: import table data dir does not exist (skipping .imp scanning)\n");
return CL_SUCCESS;
}

Loading…
Cancel
Save