summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/libnet/libnet_domain.c5
-rw-r--r--source4/libnet/libnet_domain.h1
2 files changed, 1 insertions, 5 deletions
diff --git a/source4/libnet/libnet_domain.c b/source4/libnet/libnet_domain.c
index 9462b676c1..1653bc8833 100644
--- a/source4/libnet/libnet_domain.c
+++ b/source4/libnet/libnet_domain.c
@@ -956,7 +956,7 @@ static void continue_samr_enum_domains(struct rpc_request *req)
/* prepare next round of enumeration */
s->enumdom.in.connect_handle = &s->connect_handle;
s->enumdom.in.resume_handle = &s->resume_handle;
- s->enumdom.in.buf_size = s->buf_size;
+ s->enumdom.in.buf_size = s->ctx->samr.buf_size;
s->enumdom.out.resume_handle = &s->resume_handle;
/* send the request */
@@ -1073,9 +1073,6 @@ struct composite_context* libnet_DomainList_send(struct libnet_context *ctx,
s->hostname = talloc_strdup(c, io->in.hostname);
if (composite_nomem(s->hostname, c)) return c;
- /* set the default buffer size if not stated explicitly */
- s->buf_size = (io->in.buf_size == 0) ? 512 : io->in.buf_size;
-
/* check whether samr pipe has already been opened */
if (ctx->samr.pipe == NULL) {
/* prepare rpc connect call */
diff --git a/source4/libnet/libnet_domain.h b/source4/libnet/libnet_domain.h
index 0f6a5ec234..334eb6cf6a 100644
--- a/source4/libnet/libnet_domain.h
+++ b/source4/libnet/libnet_domain.h
@@ -52,7 +52,6 @@ struct libnet_DomainClose {
struct libnet_DomainList {
struct {
const char *hostname;
- const int buf_size;
} in;
struct {
int count;