1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

r22809: use buffer size specified in libnet context.

rafal
(This used to be commit c78dfd356777f133427fb8d9013f38f19d43ecbd)
This commit is contained in:
Rafal Szczesniak 2007-05-11 21:45:03 +00:00 committed by Gerald (Jerry) Carter
parent 7c636fd2fe
commit 945cb016a4
2 changed files with 1 additions and 5 deletions

View File

@ -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 */

View File

@ -52,7 +52,6 @@ struct libnet_DomainClose {
struct libnet_DomainList {
struct {
const char *hostname;
const int buf_size;
} in;
struct {
int count;