summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */