summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2007-05-11 21:44:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:52:19 -0500
commit7c636fd2fe0a115999411cd2d67dbe8d421d49fd (patch)
tree2c6db1607d424b70305631e3b7b9b597803d6482 /source4
parent6bf83794e5849c1757bba841667729f449fb849b (diff)
downloadsamba-7c636fd2fe0a115999411cd2d67dbe8d421d49fd.tar.gz
samba-7c636fd2fe0a115999411cd2d67dbe8d421d49fd.tar.bz2
samba-7c636fd2fe0a115999411cd2d67dbe8d421d49fd.zip
r22808: store default buffer size for samr operations in libnet context.
This allows not requiring it as an argument in some function calls and still enables specifying any size if it's necessary via libnet context. rafal (This used to be commit 3e4b0c5b3b6d6bd155c8ce11b2342f4af08342f6)
Diffstat (limited to 'source4')
-rw-r--r--source4/libnet/libnet.c5
-rw-r--r--source4/libnet/libnet.h1
2 files changed, 5 insertions, 1 deletions
diff --git a/source4/libnet/libnet.c b/source4/libnet/libnet.c
index 24e291b6f8..9f971b59cd 100644
--- a/source4/libnet/libnet.c
+++ b/source4/libnet/libnet.c
@@ -47,7 +47,10 @@ struct libnet_context *libnet_context_init(struct event_context *ev)
/* connected services' params */
ZERO_STRUCT(ctx->samr);
- ZERO_STRUCT(ctx->lsa);
+ ZERO_STRUCT(ctx->lsa);
+
+ /* default buffer size for various operations requiring specifying a buffer */
+ ctx->samr.buf_size = 128;
return ctx;
}
diff --git a/source4/libnet/libnet.h b/source4/libnet/libnet.h
index b3660af702..c852c205c6 100644
--- a/source4/libnet/libnet.h
+++ b/source4/libnet/libnet.h
@@ -32,6 +32,7 @@ struct libnet_context {
const char *name;
uint32_t access_mask;
struct policy_handle handle;
+ int buf_size;
} samr;
/* lsa connection parameters - opened handles and related properties */