URI: 
       Return 1 if a block hash mismatch is detected - dedup - deduplicating backup program
  HTML git clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/
   DIR Log
   DIR Files
   DIR Refs
   DIR Tags
   DIR README
   DIR LICENSE
       ---
   DIR commit ca6087f9ea02fe655dfb1db5ef4bbcb45528baa5
   DIR parent fecf79960e6acd97640b944b9b7d653e5c2b5a52
  HTML Author: sin <sin@2f30.org>
       Date:   Thu, 16 May 2019 12:40:28 +0100
       
       Return 1 if a block hash mismatch is detected
       
       Diffstat:
         M block.c                             |       4 +++-
       
       1 file changed, 3 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/block.c b/block.c
       @@ -154,13 +154,15 @@ bcheck(struct bctx *bctx, unsigned char *md)
        
                if (bhash(buf, n, tmp) < 0) {
                        free(buf);
       +                seterr("bhash: failed");
                        return -1;
                }
        
                if (memcmp(tmp, md, MDSIZE) != 0) {
                        free(buf);
       -                return -1;
       +                return 1;
                }
       +
                free(buf);
                return 0;
        }