Backward compatibility fix in read_iflags() (for protocols < 29).
authorWayne Davison <wayned@samba.org>
Wed, 9 Mar 2005 02:25:34 +0000 (02:25 +0000)
committerWayne Davison <wayned@samba.org>
Wed, 9 Mar 2005 02:25:34 +0000 (02:25 +0000)
sender.c

index a9e426b..d4387a4 100644 (file)
--- a/sender.c
+++ b/sender.c
@@ -169,7 +169,8 @@ int read_iflags(int f_in, int f_out, int ndx, char *buf)
                }
        } else if (f_out >= 0) {
                write_int(f_out, ndx);
-               write_shortint(f_out, isave /*XXX iflags */);
+               if (protocol_version >= 29)
+                       write_shortint(f_out, isave /*XXX iflags */);
                if (len >= 0)
                        write_vstring(f_out, buf, len);
        }