libcli/wrepl: return the major version of the server in wrepl_associate()
authorStefan Metzmacher <metze@sernet.de>
Wed, 26 Mar 2008 19:06:12 +0000 (20:06 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 19 Jan 2009 06:05:53 +0000 (07:05 +0100)
metze
(from samba4wins tree 1ea02d50d1607b94e15ff07568fa5056cb6e4f09)

source4/libcli/wrepl/winsrepl.c
source4/libcli/wrepl/winsrepl.h

index c063a4bc6dda170c1801cda8932e5047a5449240..61bb10bf6a7d08360b79233fc48437dea10cff31 100644 (file)
@@ -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;
index 532496d387c5e3c7be6e6091c1332a145ca791b2..738ba391eb21b67c7088c98940c241c216356146 100644 (file)
@@ -93,6 +93,7 @@ struct wrepl_request {
 struct wrepl_associate {
        struct {
                uint32_t assoc_ctx;
+               uint16_t major_version;
        } out;
 };