Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't try to match checksums of two blocks which are of unequal
[rsync/rsync.git]
/
match.c
diff --git
a/match.c
b/match.c
index
c231c2a
..
613eaec
100644
(file)
--- a/
match.c
+++ b/
match.c
@@
-178,7
+178,7
@@
static void hash_search(int f,struct sum_struct *s,
for (; j<s->count && targets[j].t == t; j++) {
int i = targets[j].i;
for (; j<s->count && 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",
if (verbose > 3)
rprintf(FINFO,"potential match at %d target=%d %d sum=%08x\n",