summaryrefslogtreecommitdiff
path: root/source3/auth/auth_sam.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-01-04 15:37:24 +0100
committerMichael Adam <obnox@samba.org>2010-01-07 11:07:56 +0100
commitc0f404a2e46187424915a073142a0a218b48ec2c (patch)
tree0ebf18e93038251f9c9a0daef4ab7fa8be5db18c /source3/auth/auth_sam.c
parent0172587d8d56e1163c27014e1e092580d0158e10 (diff)
downloadsamba-c0f404a2e46187424915a073142a0a218b48ec2c.tar.gz
samba-c0f404a2e46187424915a073142a0a218b48ec2c.tar.bz2
samba-c0f404a2e46187424915a073142a0a218b48ec2c.zip
s3:auth: use data_blob_null instead of data_blob(NULL, 0) in sam_password_ok()
This way it is more explicit that there is no allocated data here that may leak. Michael
Diffstat (limited to 'source3/auth/auth_sam.c')
-rw-r--r--source3/auth/auth_sam.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/auth/auth_sam.c b/source3/auth/auth_sam.c
index 42ede64141..a9f1600d17 100644
--- 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) {