summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-09-13 18:09:20 +0200
committerVolker Lendecke <vl@samba.org>2010-09-13 16:41:14 -0700
commit69db4b4ccf051b05517e6eb9039ab48f90608075 (patch)
treeaedd71ab3fe16b394ae0d5c0aafae482282f6e34 /source3/utils
parent6e720ecd259742d274d6281088c5052070c955e6 (diff)
downloadsamba-69db4b4ccf051b05517e6eb9039ab48f90608075.tar.gz
samba-69db4b4ccf051b05517e6eb9039ab48f90608075.tar.bz2
samba-69db4b4ccf051b05517e6eb9039ab48f90608075.zip
ntlm_auth: Fix a valgrind error
Diffstat (limited to 'source3/utils')
-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 fec98e5e28..0fa0c297df 100644
--- a/source3/utils/ntlm_auth.c
+++ b/source3/utils/ntlm_auth.c
@@ -1169,7 +1169,7 @@ static void offer_gss_spnego_mechs(void) {
/* Server negTokenInit (mech offerings) */
spnego.type = SPNEGO_NEG_TOKEN_INIT;
- spnego.negTokenInit.mechTypes = talloc_array(ctx, const char *, 2);
+ spnego.negTokenInit.mechTypes = talloc_array(ctx, const char *, 3);
#ifdef HAVE_KRB5
spnego.negTokenInit.mechTypes[0] = talloc_strdup(ctx, OID_KERBEROS5_OLD);
spnego.negTokenInit.mechTypes[1] = talloc_strdup(ctx, OID_NTLMSSP);