git.samba.org
/
idra
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efb2922
)
Fix bug #7448 - smbd crash when sambaLMPassword and sambaNTPassword entries missing...
author
Roel van Meer
<rolek@bokxing.nl>
Fri, 21 May 2010 21:17:17 +0000
(14:17 -0700)
committer
Jeremy Allison
<jra@samba.org>
Fri, 21 May 2010 21:17:17 +0000
(14:17 -0700)
Protect SMBsesskeygen_ntv1() from a NULL pointer.
source3/auth/check_samsec.c
patch
|
blob
|
history
diff --git
a/source3/auth/check_samsec.c
b/source3/auth/check_samsec.c
index bd8cb4bb64d35de593f53f17f055e925aec41198..db2bde7bbc4be14f46c315be22f3a9a89df2122f 100644
(file)
--- a/
source3/auth/check_samsec.c
+++ b/
source3/auth/check_samsec.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;