mirror of
https://github.com/samba-team/samba.git
synced 2025-11-25 00:23:52 +03:00
r22809: use buffer size specified in libnet context.
rafal
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
3e4b0c5b3b
commit
c78dfd3567
@@ -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 */
|
||||
|
||||
@@ -52,7 +52,6 @@ struct libnet_DomainClose {
|
||||
struct libnet_DomainList {
|
||||
struct {
|
||||
const char *hostname;
|
||||
const int buf_size;
|
||||
} in;
|
||||
struct {
|
||||
int count;
|
||||
|
||||
Reference in New Issue
Block a user