mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
r16373: Fix Klocwork #1071.
Jeremy (This used to be commit 080464b93d965a583b2b5f248a2bb8a7fb516e6f)
This commit is contained in:
parent
cc01fd242b
commit
5cccafff45
@ -6471,8 +6471,14 @@ static BOOL sam_io_user_info21(const char *desc, SAM_USER_INFO_21 * usr,
|
||||
void init_sam_user_info20A(SAM_USER_INFO_20 *usr, struct samu *pw)
|
||||
{
|
||||
const char *munged_dial = pdb_get_munged_dial(pw);
|
||||
DATA_BLOB blob = base64_decode_data_blob(munged_dial);
|
||||
|
||||
DATA_BLOB blob;
|
||||
|
||||
if (munged_dial) {
|
||||
blob = base64_decode_data_blob(munged_dial);
|
||||
} else {
|
||||
blob = data_blob(NULL, 0);
|
||||
}
|
||||
|
||||
init_unistr2_from_datablob(&usr->uni_munged_dial, &blob);
|
||||
init_uni_hdr(&usr->hdr_munged_dial, &usr->uni_munged_dial);
|
||||
data_blob_free(&blob);
|
||||
|
Loading…
x
Reference in New Issue
Block a user