CVE-2016-2111: s4:param: use "client use spnego" to initialize options->use_spnego
authorStefan Metzmacher <metze@samba.org>
Sat, 26 Mar 2016 17:08:16 +0000 (18:08 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 12 Apr 2016 17:25:24 +0000 (19:25 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11749

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
source4/param/loadparm.c

index af3313f6dd8f19bf61bdae91467e0fd136927078..71331fb18354b9ff54fc4d360a6678a51bb89988 100644 (file)
@@ -36,7 +36,7 @@ void lpcfg_smbcli_options(struct loadparm_context *lp_ctx,
 {
        options->max_xmit = lpcfg_max_xmit(lp_ctx);
        options->max_mux = lpcfg_max_mux(lp_ctx);
-       options->use_spnego = lpcfg_nt_status_support(lp_ctx) && lpcfg_use_spnego(lp_ctx);
+       options->use_spnego = lpcfg_nt_status_support(lp_ctx) && lpcfg_client_use_spnego(lp_ctx);
        options->signing = lpcfg_client_signing(lp_ctx);
        options->request_timeout = SMB_REQUEST_TIMEOUT;
        options->ntstatus_support = lpcfg_nt_status_support(lp_ctx);