diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-05-14 12:16:20 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:22:01 -0500 |
commit | 3d3d61687ef00181f4f04e001d42181d93ac931e (patch) | |
tree | 1c1e610eb96ec2facaeacaa9659b80c0db29a9fa /source/auth/auth_util.c | |
parent | 1351207626ee0f99aef93326ef96bf69651bf472 (diff) | |
download | samba-3d3d61687ef00181f4f04e001d42181d93ac931e.tar.gz samba-3d3d61687ef00181f4f04e001d42181d93ac931e.tar.xz samba-3d3d61687ef00181f4f04e001d42181d93ac931e.zip |
r22844: Introduce const DATA_BLOB data_blob_null = { NULL, 0, NULL }; and
replace all data_blob(NULL, 0) calls.
Diffstat (limited to 'source/auth/auth_util.c')
-rw-r--r-- | source/auth/auth_util.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/auth/auth_util.c b/source/auth/auth_util.c index 1795322b55a..f66c500943b 100644 --- a/source/auth/auth_util.c +++ b/source/auth/auth_util.c @@ -372,11 +372,11 @@ BOOL make_user_info_for_reply(auth_usersupplied_info **user_info, /* We can't do an NT hash here, as the password needs to be case insensitive */ - local_nt_blob = data_blob(NULL, 0); + local_nt_blob = data_blob_null; } else { - local_lm_blob = data_blob(NULL, 0); - local_nt_blob = data_blob(NULL, 0); + local_lm_blob = data_blob_null; + local_nt_blob = data_blob_null; } ret = make_user_info_map( @@ -1570,7 +1570,7 @@ NTSTATUS make_server_info_info3(TALLOC_CTX *mem_ctx, /* ensure we are never given NULL session keys */ if (memcmp(info3->user_sess_key, zeros, sizeof(zeros)) == 0) { - result->user_session_key = data_blob(NULL, 0); + result->user_session_key = data_blob_null; } else { result->user_session_key = data_blob_talloc( result, info3->user_sess_key, @@ -1578,7 +1578,7 @@ NTSTATUS make_server_info_info3(TALLOC_CTX *mem_ctx, } if (memcmp(info3->lm_sess_key, zeros, 8) == 0) { - result->lm_session_key = data_blob(NULL, 0); + result->lm_session_key = data_blob_null; } else { result->lm_session_key = data_blob_talloc( result, info3->lm_sess_key, |