The Samba-Bugzilla – Attachment 5731 Details for
Bug 7448
smbd crash when sambaLMPassword and sambaNTPassword entries missing from ldap
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
git-am format patch for 3.5.x.
0001-Fix-bug-7448-smbd-crash-when-sambaLMPassword-and-sam.patch (text/plain), 866 bytes, created by
Jeremy Allison
on 2010-05-21 16:21:48 UTC
(
hide
)
Description:
git-am format patch for 3.5.x.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2010-05-21 16:21:48 UTC
Size:
866 bytes
patch
obsolete
>From 366333c08fe1d26276a90391dcec0526a65cb2a2 Mon Sep 17 00:00:00 2001 >From: Roel van Meer <rolek@bokxing.nl> >Date: Fri, 21 May 2010 14:17:17 -0700 >Subject: [PATCH] Fix bug #7448 - smbd crash when sambaLMPassword and sambaNTPassword entries missing from ldap. > >Protect SMBsesskeygen_ntv1() from a NULL pointer. >--- > source3/auth/auth_sam.c | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > >diff --git a/source3/auth/auth_sam.c b/source3/auth/auth_sam.c >index bd8cb4b..db2bde7 100644 >--- a/source3/auth/auth_sam.c >+++ b/source3/auth/auth_sam.c >@@ -78,6 +78,9 @@ static NTSTATUS sam_password_ok(TALLOC_CTX *mem_ctx, > } > > if (client_lm_hash || client_nt_hash) { >+ if (!nt_pw) { >+ return NT_STATUS_WRONG_PASSWORD; >+ } > *user_sess_key = data_blob_talloc(mem_ctx, NULL, 16); > if (!user_sess_key->data) { > return NT_STATUS_NO_MEMORY; >-- >1.7.0.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
vl
:
review+
Actions:
View
Attachments on
bug 7448
:
5726
|
5727
| 5731