From: Wayne Davison Date: Wed, 23 Dec 2009 22:10:25 +0000 (-0800) Subject: Improve handling of MSG_IO_ERROR message. X-Git-Tag: v3.1.0pre1~254 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=164faae84f0abf1c9df2f28a09ae8579c86acfa3;p=thirdparty%2Frsync.git Improve handling of MSG_IO_ERROR message. --- diff --git a/io.c b/io.c index ae607756..077e5033 100644 --- a/io.c +++ b/io.c @@ -1405,12 +1405,12 @@ static void read_a_msg(void) got_flist_entry_status(FES_REDO, val); break; case MSG_IO_ERROR: - if (msg_bytes != 4 || am_sender) + if (msg_bytes != 4) goto invalid_msg; val = raw_read_int(); iobuf.in_multiplexed = 1; io_error |= val; - if (!am_generator) + if (am_receiver) send_msg_int(MSG_IO_ERROR, val); break; case MSG_IO_TIMEOUT: