Fmap: Fix copy-paste bug when checking if map hash exists

pull/727/head
Micah Snyder 3 years ago committed by Micah Snyder
parent 223c690958
commit bbcd4c275b
  1. 4
      libclamav/fmap.c

@ -1139,12 +1139,12 @@ cl_error_t fmap_get_hash(fmap_t *map, unsigned char **hash, cli_hash_type_t type
}
break;
case CLI_HASH_SHA1:
if (map->have_md5) {
if (map->have_sha1) {
goto complete;
}
break;
case CLI_HASH_SHA256:
if (map->have_md5) {
if (map->have_sha256) {
goto complete;
}
break;

Loading…
Cancel
Save