Browse code

bb17169 - compute MD5 file hashsums when using wildcard hdb signatures with caching disabled.

Steven Morgan authored on 2016/10/12 06:48:58
Showing 1 changed files
... ...
@@ -981,7 +981,8 @@ int cli_fmap_scandesc(cli_ctx *ctx, cli_file_t ftype, uint8_t ftonly, struct cli
981 981
 
982 982
     if(!ftonly && hdb) {
983 983
         if(!refhash) {
984
-            if(cli_hm_have_size(hdb, CLI_HASH_MD5, map->len) || cli_hm_have_size(fp, CLI_HASH_MD5, map->len)) {
984
+            if(cli_hm_have_size(hdb, CLI_HASH_MD5, map->len) || cli_hm_have_size(fp, CLI_HASH_MD5, map->len)
985
+               || cli_hm_have_wild(hdb, CLI_HASH_MD5) || cli_hm_have_wild(fp, CLI_HASH_MD5)) {
985 986
                 compute_hash[CLI_HASH_MD5] = 1;
986 987
             } else {
987 988
                 compute_hash[CLI_HASH_MD5] = 0;