diff options
| author | Wayne Davison <wayned@samba.org> | 2006-03-16 01:27:26 +0000 |
|---|---|---|
| committer | Wayne Davison <wayned@samba.org> | 2006-03-16 01:27:26 +0000 |
| commit | 408e69396c7efd881185face829c2057044c61e5 (patch) | |
| tree | 1fce998c1fb500e615f6c1062d92989b3dbf85ce /io.c | |
| parent | 954bbed84aef742d65327a4de0ea214ed90cb6b3 (diff) | |
| download | android_external_rsync-408e69396c7efd881185face829c2057044c61e5.tar.gz android_external_rsync-408e69396c7efd881185face829c2057044c61e5.tar.bz2 android_external_rsync-408e69396c7efd881185face829c2057044c61e5.zip | |
Fixed the reacquisition of the code value from the msg2sndr list.
Diffstat (limited to 'io.c')
| -rw-r--r-- | io.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 = (IVAL(m->buf,0) >> 24) - 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; |
