We need to call msg2sndr_flush() in read_msg_fd() now.
authorWayne Davison <wayned@samba.org>
Sat, 20 Jan 2007 20:19:24 +0000 (20:19 +0000)
committerWayne Davison <wayned@samba.org>
Sat, 20 Jan 2007 20:19:24 +0000 (20:19 +0000)
io.c

diff --git a/io.c b/io.c
index 915d21d..567065b 100644 (file)
--- a/io.c
+++ b/io.c
@@ -107,6 +107,7 @@ static char int_byte_cnt[64] = {
        5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 8, 9, /* (C0 - FF)/4 */
 };
 
        5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 8, 9, /* (C0 - FF)/4 */
 };
 
+static void msg2sndr_flush(void);
 static void readfd(int fd, char *buffer, size_t N);
 static void writefd(int fd, const char *buf, size_t len);
 static void writefd_unbuffered(int fd, const char *buf, size_t len);
 static void readfd(int fd, char *buffer, size_t N);
 static void writefd(int fd, const char *buf, size_t len);
 static void writefd_unbuffered(int fd, const char *buf, size_t len);
@@ -360,6 +361,7 @@ static void read_msg_fd(void)
 
        defer_forwarding_messages--;
        msg_fd_in = fd;
 
        defer_forwarding_messages--;
        msg_fd_in = fd;
+       msg2sndr_flush();
 }
 
 /* This is used by the generator to limit how many file transfers can
 }
 
 /* This is used by the generator to limit how many file transfers can