1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

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
This commit is contained in:
Michael Adam 2010-01-04 15:37:24 +01:00
parent 0172587d8d
commit c0f404a2e4

View File

@ -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) {