diff --git a/rsync-both-compressions.patch b/rsync-both-compressions.patch
index 1670e74..7aacf66 100644
--- a/rsync-both-compressions.patch
+++ b/rsync-both-compressions.patch
@@ -55,9 +55,18 @@ index 64ec8b84..522875c5 100644
  
  #ifdef HAVE_SETVBUF
 diff --git a/token.c b/token.c
-index ad9b9bcd..0eb95362 100644
+index ad9b9bcd..a1ceb975 100644
 --- a/token.c
 +++ b/token.c
+@@ -374,7 +374,7 @@ send_deflated_token(int f, int32 token, struct map_struct *buf, OFF_T offset,
+ 			}
+ 			if (nb == 0 && token != -2)
+ 				flush = Z_SYNC_FLUSH;
+-			r = deflate(&tx_strm, flush);
++			r = deflate_int(&tx_strm, flush);
+ 			if (r != Z_OK) {
+ 				rprintf(FERROR, "deflate returned %d\n", r);
+ 				exit_cleanup(RERR_STREAMIO);
 @@ -405,7 +405,6 @@ send_deflated_token(int f, int32 token, struct map_struct *buf, OFF_T offset,
  	} else if (token != -2 && do_compression == 1) {
  		/* Add the data in the current block to the compressor's
diff --git a/rsync.changes b/rsync.changes
index 09a9c97..bf4fbad 100644
--- a/rsync.changes
+++ b/rsync.changes
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Mon Jul 24 10:45:16 UTC 2017 - tchvatal@suse.com
+
+- Refresh patch rsync-both-compressions.patch to include
+  fix when using old-compress on new zlib on server too
+
 -------------------------------------------------------------------
 Thu Jul 13 09:00:59 UTC 2017 - tchvatal@suse.com