diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-11-25 10:08:31 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:46:43 -0500 |
commit | 329c5e0a5fb545afcb353ac5a0be261240db053f (patch) | |
tree | a984accbf9b5d856e5e893c08eb080b2a257dd25 /source4/wrepl_server | |
parent | d90914dda878a21372a9e6c4025a61f903c12313 (diff) | |
download | samba-329c5e0a5fb545afcb353ac5a0be261240db053f.tar.gz samba-329c5e0a5fb545afcb353ac5a0be261240db053f.tar.bz2 samba-329c5e0a5fb545afcb353ac5a0be261240db053f.zip |
r11896: max_version of 0 means unlimited
metze
(This used to be commit 9872348ac81c6907ae1c76f909df13d5fd772b5a)
Diffstat (limited to 'source4/wrepl_server')
-rw-r--r-- | source4/wrepl_server/wrepl_in_call.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/wrepl_server/wrepl_in_call.c b/source4/wrepl_server/wrepl_in_call.c index b3406c96ba..6b1bc4500e 100644 --- a/source4/wrepl_server/wrepl_in_call.c +++ b/source4/wrepl_server/wrepl_in_call.c @@ -217,6 +217,14 @@ static NTSTATUS wreplsrv_in_send_request(struct wreplsrv_in_call *call) } /* + * the client sends a max_version of 0, interpret it as + * (uint64_t)-1 + */ + if (owner_in->max_version == 0) { + owner_in->max_version = (uint64_t)-1; + } + + /* * if the partner ask for nothing, or give invalid ranges, * return an empty list. */ |