1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r16373: Fix Klocwork #1071.

Jeremy
This commit is contained in:
Jeremy Allison 2006-06-19 22:59:03 +00:00 committed by Gerald (Jerry) Carter
parent 5057e90db3
commit 080464b93d

View File

@ -6471,7 +6471,13 @@ 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);