git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3bd0b5
)
s3:auth: use data_blob_null instead of data_blob(NULL, 0) in sam_password_ok()
author
Michael Adam
<obnox@samba.org>
Mon, 4 Jan 2010 14:37:24 +0000
(15:37 +0100)
committer
Karolin Seeger
<kseeger@samba.org>
Mon, 25 Jan 2010 11:41:58 +0000
(12:41 +0100)
This way it is more explicit that there is no allocated data here
that may leak.
Michael
source3/auth/auth_sam.c
patch
|
blob
|
history
diff --git
a/source3/auth/auth_sam.c
b/source3/auth/auth_sam.c
index 42ede641412c76febe24858ec7a5e0e81a457157..a9f1600d1778483b44f8fe91d21372d46faa4b6d 100644
(file)
--- a/
source3/auth/auth_sam.c
+++ b/
source3/auth/auth_sam.c
@@
-47,8
+47,8
@@
static NTSTATUS sam_password_ok(const struct auth_context *auth_context,
struct samr_Password *client_nt_hash = NULL;
const char *username = pdb_get_username(sampass);
- *user_sess_key = data_blob
(NULL, 0)
;
- *lm_sess_key = data_blob
(NULL, 0)
;
+ *user_sess_key = data_blob
_null
;
+ *lm_sess_key = data_blob
_null
;
acct_ctrl = pdb_get_acct_ctrl(sampass);
if (acct_ctrl & ACB_PWNOTREQ) {