From d5af819b1a1f293dda108e77b4dfb64afb894035 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Fri, 12 Feb 2010 14:58:27 +0100 Subject: s4:auth/credentials/credentials.c - Initialise the "lm_response" and "nt_response" structures In some cases those structures are not initialised and the whole authentication system crashes with a SIGSEGV. Bug discovered by Matthieu Patou in bug #6755. --- source4/auth/credentials/credentials.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4/auth/credentials') diff --git a/source4/auth/credentials/credentials.c b/source4/auth/credentials/credentials.c index 549c2691f0..959068c24d 100644 --- a/source4/auth/credentials/credentials.c +++ b/source4/auth/credentials/credentials.c @@ -68,6 +68,11 @@ _PUBLIC_ struct cli_credentials *cli_credentials_init(TALLOC_CTX *mem_ctx) cred->nt_hash = NULL; + cred->lm_response.data = NULL; + cred->lm_response.length = 0; + cred->nt_response.data = NULL; + cred->nt_response.length = 0; + cred->ccache = NULL; cred->client_gss_creds = NULL; cred->keytab = NULL; -- cgit