diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2010-02-12 14:58:27 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2010-02-12 15:04:07 +0100 |
commit | d5af819b1a1f293dda108e77b4dfb64afb894035 (patch) | |
tree | 30b0e72a25342211a488867dcff3900f67742e33 /source4 | |
parent | de555895e59ffa691b5c8e910fe0d93cacc9281e (diff) | |
download | samba-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.c | 5 |
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; |