1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r4259: Fix cast in SMB_XMALLOC_ARRAY. Bugzilla #2168.

(This used to be commit 0c3bb181e8)
This commit is contained in:
Tim Potter 2004-12-17 21:59:47 +00:00 committed by Gerald (Jerry) Carter
parent 92138d1920
commit d9fc4d8a8a

View File

@ -753,7 +753,7 @@ static void offer_gss_spnego_mechs(void) {
/* Server negTokenInit (mech offerings) */
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
spnego.negTokenInit.mechTypes[0] = smb_xstrdup(OID_KERBEROS5_OLD);
spnego.negTokenInit.mechTypes[1] = smb_xstrdup(OID_NTLMSSP);