summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-02-12 14:58:27 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-02-12 15:04:07 +0100
commitd5af819b1a1f293dda108e77b4dfb64afb894035 (patch)
tree30b0e72a25342211a488867dcff3900f67742e33 /source4
parentde555895e59ffa691b5c8e910fe0d93cacc9281e (diff)
downloadsamba-d5af819b1a1f293dda108e77b4dfb64afb894035.tar.gz
samba-d5af819b1a1f293dda108e77b4dfb64afb894035.tar.bz2
samba-d5af819b1a1f293dda108e77b4dfb64afb894035.zip
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.
Diffstat (limited to 'source4')
-rw-r--r--source4/auth/credentials/credentials.c5
1 files changed, 5 insertions, 0 deletions
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;