summaryrefslogtreecommitdiff
path: root/source4/libnet
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2007-05-11 21:45:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:52:19 -0500
commit945cb016a444a2170685e15e427167d8305542d2 (patch)
treea1bf6c11372950e208db464be2b281865d9f38e1 /source4/libnet
parent7c636fd2fe0a115999411cd2d67dbe8d421d49fd (diff)
downloadsamba-945cb016a444a2170685e15e427167d8305542d2.tar.gz
samba-945cb016a444a2170685e15e427167d8305542d2.tar.bz2
samba-945cb016a444a2170685e15e427167d8305542d2.zip
r22809: use buffer size specified in libnet context.
rafal (This used to be commit c78dfd356777f133427fb8d9013f38f19d43ecbd)
Diffstat (limited to 'source4/libnet')
-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;