git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58b7b3d
)
Avoid a crash if we read an index value without a valid first_flist.
author
Wayne Davison
<wayned@samba.org>
Wed, 31 Oct 2007 04:43:19 +0000
(
04:43
+0000)
committer
Wayne Davison
<wayned@samba.org>
Wed, 31 Oct 2007 04:43:19 +0000
(
04:43
+0000)
rsync.c
patch
|
blob
|
history
diff --git
a/rsync.c
b/rsync.c
index 79ec384531f5cfb06a7a4a7975097d02778ddd2e..7f8d65cbee5650c4bf9a10909d40e1539913f368 100644
(file)
--- a/
rsync.c
+++ b/
rsync.c
@@
-265,7
+265,8
@@
int read_ndx_and_attrs(int f_in, int *iflag_ptr, uchar *type_ptr,
invalid_ndx:
rprintf(FERROR,
"Invalid file index: %d (%d - %d) with iflags %x [%s]\n",
- ndx, first_flist->ndx_start - 1, first_flist->prev->ndx_end,
+ ndx, first_flist ? first_flist->ndx_start - 1 : -1,
+ first_flist ? first_flist->prev->ndx_end : -1,
iflags, who_am_i());
exit_cleanup(RERR_PROTOCOL);
}