X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/d17e1dd2dae6bfd9e2e147a0dd3039848dd43abc..9935066b704bcf2e6e48dac85cb1b4047d8f439d:/io.c diff --git a/io.c b/io.c index 7bb3b088..38386b69 100644 --- a/io.c +++ b/io.c @@ -208,13 +208,17 @@ static void read_msg_fd(void) switch (tag) { case MSG_DONE: - if (len != 0) + if (len != 0) { + rprintf(FERROR, "invalid message %d:%d\n", tag, len); exit_cleanup(RERR_STREAMIO); + } 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); + } read_loop(fd, buf, 4); redo_list_add(IVAL(buf,0)); break; @@ -231,6 +235,7 @@ static void read_msg_fd(void) } break; default: + rprintf(FERROR, "unknown message %d:%d\n", tag, len); exit_cleanup(RERR_STREAMIO); }