X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/34d3eed4627bbb30ff77c92e2c055c3e5836de77..496d9272c1b3094e4a1c31273af5401bac1720c0:/match.c diff --git a/match.c b/match.c index c231c2ac..613eaec8 100644 --- a/match.c +++ b/match.c @@ -178,7 +178,7 @@ static void hash_search(int f,struct sum_struct *s, for (; jcount && targets[j].t == t; j++) { int i = targets[j].i; - if (sum != s->sums[i].sum1) continue; + if (sum != s->sums[i].sum1 || s->sums[i].len > (len-offset)) continue; if (verbose > 3) rprintf(FINFO,"potential match at %d target=%d %d sum=%08x\n",