Forward a MSG_ERROR_EXIT value to generator too.
authorWayne Davison <wayned@samba.org>
Sun, 26 May 2013 23:10:57 +0000 (16:10 -0700)
committerWayne Davison <wayned@samba.org>
Sun, 26 May 2013 23:23:37 +0000 (16:23 -0700)
Fixes bug 9882.

io.c

diff --git a/io.c b/io.c
index 771fc0f..2c69b82 100644 (file)
--- a/io.c
+++ b/io.c
@@ -1613,7 +1613,7 @@ static void read_a_msg(void)
                                io_flush(FULL_FLUSH);
                        }
                } else if (protocol_version >= 31) {
-                       if (am_generator) {
+                       if (am_generator || am_receiver) {
                                if (DEBUG_GTE(EXIT, 3)) {
                                        rprintf(FINFO, "[%s] sending MSG_ERROR_EXIT with exit_code %d\n",
                                                who_am_i(), val);