From: Stefan Metzmacher Date: Wed, 26 Mar 2008 19:06:12 +0000 (+0100) Subject: libcli/wrepl: return the major version of the server in wrepl_associate() X-Git-Tag: samba-4.0.0alpha6~13 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=d5b7240ac510fc3d1a7033b22a3a59b1450103aa;p=samba.git libcli/wrepl: return the major version of the server in wrepl_associate() metze (from samba4wins tree 1ea02d50d1607b94e15ff07568fa5056cb6e4f09) --- diff --git a/source4/libcli/wrepl/winsrepl.c b/source4/libcli/wrepl/winsrepl.c index c063a4bc6dd..61bb10bf6a7 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 532496d387c..738ba391eb2 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; };