summaryrefslogtreecommitdiff
path: root/source4/libcli/wrepl
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@sernet.de>2008-03-26 20:06:12 +0100
committerStefan Metzmacher <metze@samba.org>2009-01-19 07:05:53 +0100
commitd5b7240ac510fc3d1a7033b22a3a59b1450103aa (patch)
treef2275ab918679f5e70868ab641767b31de86ff16 /source4/libcli/wrepl
parent7c7bdf3669f55b7bd3e2ff138af8f57bcc6596ee (diff)
downloadsamba-d5b7240ac510fc3d1a7033b22a3a59b1450103aa.tar.gz
samba-d5b7240ac510fc3d1a7033b22a3a59b1450103aa.tar.bz2
samba-d5b7240ac510fc3d1a7033b22a3a59b1450103aa.zip
libcli/wrepl: return the major version of the server in wrepl_associate()
metze (from samba4wins tree 1ea02d50d1607b94e15ff07568fa5056cb6e4f09)
Diffstat (limited to 'source4/libcli/wrepl')
-rw-r--r--source4/libcli/wrepl/winsrepl.c1
-rw-r--r--source4/libcli/wrepl/winsrepl.h1
2 files changed, 2 insertions, 0 deletions
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;
};