From d5b7240ac510fc3d1a7033b22a3a59b1450103aa Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 26 Mar 2008 20:06:12 +0100 Subject: libcli/wrepl: return the major version of the server in wrepl_associate() metze (from samba4wins tree 1ea02d50d1607b94e15ff07568fa5056cb6e4f09) --- source4/libcli/wrepl/winsrepl.c | 1 + source4/libcli/wrepl/winsrepl.h | 1 + 2 files changed, 2 insertions(+) (limited to 'source4/libcli') diff --git a/source4/libcli/wrepl/winsrepl.c b/source4/libcli/wrepl/winsrepl.c index c063a4bc6d..61bb10bf6a 100644 --- a/source4/libcli/wrepl/winsrepl.c +++ b/source4/libcli/wrepl/winsrepl.c @@ -611,6 +611,7 @@ NTSTATUS wrepl_associate_recv(struct wrepl_request *req, } if (NT_STATUS_IS_OK(status)) { io->out.assoc_ctx = packet->message.start_reply.assoc_ctx; + io->out.major_version = packet->message.start_reply.major_version; } talloc_free(packet); return status; diff --git a/source4/libcli/wrepl/winsrepl.h b/source4/libcli/wrepl/winsrepl.h index 532496d387..738ba391eb 100644 --- a/source4/libcli/wrepl/winsrepl.h +++ b/source4/libcli/wrepl/winsrepl.h @@ -93,6 +93,7 @@ struct wrepl_request { struct wrepl_associate { struct { uint32_t assoc_ctx; + uint16_t major_version; } out; }; -- cgit