From c0f404a2e46187424915a073142a0a218b48ec2c Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 4 Jan 2010 15:37:24 +0100 Subject: 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 --- source3/auth/auth_sam.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3') 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) { -- cgit