X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/4c17cdcb64e3f333f141b43b3193a19eece4c8a1..3db06222afe9960cf6b41c4a90e892c6ee80d44d:/match.c diff --git a/match.c b/match.c index 01e91173..79e591a2 100644 --- a/match.c +++ b/match.c @@ -171,7 +171,10 @@ static void hash_search(int f,struct sum_struct *s, if (offset >= reset) { sum_pos = build_hash_table(s, sum_pos); - reset = sum_pos * s->blength; + if (sum_pos == s->count) + reset = len; + else + reset = sum_pos * s->blength; } if (verbose > 4) {