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
Made hard-link sending compatible with pre-28 protocols again.
[rsync/rsync.git]
/
io.c
diff --git
a/io.c
b/io.c
index
7bb3b08
..
38386b6
100644
(file)
--- a/
io.c
+++ b/
io.c
@@
-208,13
+208,17
@@
static void read_msg_fd(void)
switch (tag) {
case MSG_DONE:
switch (tag) {
case MSG_DONE:
- if (len != 0)
+ if (len != 0) {
+ rprintf(FERROR, "invalid message %d:%d\n", tag, len);
exit_cleanup(RERR_STREAMIO);
exit_cleanup(RERR_STREAMIO);
+ }
redo_list_add(-1);
break;
case MSG_REDO:
redo_list_add(-1);
break;
case MSG_REDO:
- if (len != 4)
+ if (len != 4) {
+ rprintf(FERROR, "invalid message %d:%d\n", tag, len);
exit_cleanup(RERR_STREAMIO);
exit_cleanup(RERR_STREAMIO);
+ }
read_loop(fd, buf, 4);
redo_list_add(IVAL(buf,0));
break;
read_loop(fd, buf, 4);
redo_list_add(IVAL(buf,0));
break;
@@
-231,6
+235,7
@@
static void read_msg_fd(void)
}
break;
default:
}
break;
default:
+ rprintf(FERROR, "unknown message %d:%d\n", tag, len);
exit_cleanup(RERR_STREAMIO);
}
exit_cleanup(RERR_STREAMIO);
}