From 4e99a0fbfeb1330f67059caaef25669410510617 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 25 Sep 2013 06:46:47 +0200 Subject: s4:libcli:smb2: add the client_guid to the smbcli_options and initialize it in lpcfg_smbcli_options() instead of in smb2_transport_init() as previously. Having the client guid in the smbcli_options will allow us to control them from callers later. Signed-off-by: Michael Adam Reviewed-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- source4/param/loadparm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/param') diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c index 3fbf852899..900db7d40a 100644 --- a/source4/param/loadparm.c +++ b/source4/param/loadparm.c @@ -29,6 +29,7 @@ #include "includes.h" #include "lib/param/param.h" #include "libcli/raw/libcliraw.h" +#include "librpc/ndr/libndr.h" void lpcfg_smbcli_options(struct loadparm_context *lp_ctx, struct smbcli_options *options) @@ -43,6 +44,7 @@ void lpcfg_smbcli_options(struct loadparm_context *lp_ctx, options->unicode = lpcfg_unicode(lp_ctx); options->use_oplocks = true; options->use_level2_oplocks = true; + options->client_guid = GUID_random(); } void lpcfg_smbcli_session_options(struct loadparm_context *lp_ctx, -- cgit