X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/954bbed84aef742d65327a4de0ea214ed90cb6b3..5b51c893c563e64f1e6b7e0550f4b8831e641bd1:/io.c diff --git a/io.c b/io.c index 4ade1ea1..458ed7fb 100644 --- a/io.c +++ b/io.c @@ -1103,10 +1103,11 @@ static void writefd_unbuffered(int fd,char *buf,size_t len) if (msg2sndr.head && !defer_forwarding_messages) { struct msg_list_item *m = msg2sndr.head; + int code = *((uchar*)m->buf+3) - MPLEX_BASE; if (!(msg2sndr.head = m->next)) msg2sndr.tail = NULL; defer_forwarding_messages = 1; - io_multiplex_write(IVAL(m->buf,0), m->buf+4, m->len-4); + io_multiplex_write(code, m->buf+4, m->len-4); defer_forwarding_messages = 0; free(m); continue;