mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
r4259: Fix cast in SMB_XMALLOC_ARRAY. Bugzilla #2168.
(This used to be commit 0c3bb181e8
)
This commit is contained in:
parent
92138d1920
commit
d9fc4d8a8a
@ -753,7 +753,7 @@ static void offer_gss_spnego_mechs(void) {
|
|||||||
|
|
||||||
/* Server negTokenInit (mech offerings) */
|
/* Server negTokenInit (mech offerings) */
|
||||||
spnego.type = SPNEGO_NEG_TOKEN_INIT;
|
spnego.type = SPNEGO_NEG_TOKEN_INIT;
|
||||||
spnego.negTokenInit.mechTypes = SMB_XMALLOC_ARRAY(char *, 3);
|
spnego.negTokenInit.mechTypes = SMB_XMALLOC_ARRAY(const char *, 3);
|
||||||
#ifdef HAVE_KRB5
|
#ifdef HAVE_KRB5
|
||||||
spnego.negTokenInit.mechTypes[0] = smb_xstrdup(OID_KERBEROS5_OLD);
|
spnego.negTokenInit.mechTypes[0] = smb_xstrdup(OID_KERBEROS5_OLD);
|
||||||
spnego.negTokenInit.mechTypes[1] = smb_xstrdup(OID_NTLMSSP);
|
spnego.negTokenInit.mechTypes[1] = smb_xstrdup(OID_NTLMSSP);
|
||||||
|
Loading…
Reference in New Issue
Block a user