summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-12-17 21:59:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:40 -0500
commitd9fc4d8a8ad1e18454c500dcc82e8673393125c6 (patch)
tree921a7175a3e47a5683b56ef1d36caae2f32270bd
parent92138d19203442cdaba23b508793237ec2fe9956 (diff)
downloadsamba-d9fc4d8a8ad1e18454c500dcc82e8673393125c6.tar.gz
samba-d9fc4d8a8ad1e18454c500dcc82e8673393125c6.tar.bz2
samba-d9fc4d8a8ad1e18454c500dcc82e8673393125c6.zip
r4259: Fix cast in SMB_XMALLOC_ARRAY. Bugzilla #2168.
(This used to be commit 0c3bb181e8f4d10d446f9211904d53f42ddcbaeb)
-rw-r--r--source3/utils/ntlm_auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/ntlm_auth.c b/source3/utils/ntlm_auth.c
index 3d55c37355..0468b671af 100644
--- a/source3/utils/ntlm_auth.c
+++ b/source3/utils/ntlm_auth.c
@@ -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);