svn commit: samba r22809 - in branches/SAMBA_4_0/source/libnet: .
mimir at samba.org
mimir at samba.org
Fri May 11 21:45:04 GMT 2007
Author: mimir
Date: 2007-05-11 21:45:03 +0000 (Fri, 11 May 2007)
New Revision: 22809
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22809
Log:
use buffer size specified in libnet context.
rafal
Modified:
branches/SAMBA_4_0/source/libnet/libnet_domain.c
branches/SAMBA_4_0/source/libnet/libnet_domain.h
Changeset:
Modified: branches/SAMBA_4_0/source/libnet/libnet_domain.c
===================================================================
--- branches/SAMBA_4_0/source/libnet/libnet_domain.c 2007-05-11 21:44:18 UTC (rev 22808)
+++ branches/SAMBA_4_0/source/libnet/libnet_domain.c 2007-05-11 21:45:03 UTC (rev 22809)
@@ -956,7 +956,7 @@
/* 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 @@
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 */
Modified: branches/SAMBA_4_0/source/libnet/libnet_domain.h
===================================================================
--- branches/SAMBA_4_0/source/libnet/libnet_domain.h 2007-05-11 21:44:18 UTC (rev 22808)
+++ branches/SAMBA_4_0/source/libnet/libnet_domain.h 2007-05-11 21:45:03 UTC (rev 22809)
@@ -52,7 +52,6 @@
struct libnet_DomainList {
struct {
const char *hostname;
- const int buf_size;
} in;
struct {
int count;
More information about the samba-cvs
mailing list