Set checksum_seed only if it is still zero.
authorWayne Davison <wayned@samba.org>
Mon, 9 Feb 2004 18:32:53 +0000 (18:32 +0000)
committerWayne Davison <wayned@samba.org>
Mon, 9 Feb 2004 18:32:53 +0000 (18:32 +0000)
compat.c

index c2a1103..d1c367a 100644 (file)
--- a/compat.c
+++ b/compat.c
@@ -38,7 +38,6 @@ extern int preserve_times;
 extern int always_checksum;
 extern int checksum_seed;
 
-
 extern int protocol_version;
 extern int verbose;
 
@@ -85,11 +84,9 @@ void setup_protocol(int f_out,int f_in)
        }
 
        if (am_server) {
-               if (read_batch || write_batch)
-                       checksum_seed = 32761;
-               else
+               if (!checksum_seed)
                        checksum_seed = time(NULL);
-               write_int(f_out,checksum_seed);
+               write_int(f_out, checksum_seed);
        } else {
                checksum_seed = read_int(f_in);
        }