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

Survive a samdump with an alias that has no description

Volker
(This used to be commit 5af417a6ba)
This commit is contained in:
Volker Lendecke
2003-04-18 08:35:08 +00:00
parent fb3ff5fc44
commit e54b9d59d6

View File

@ -2277,9 +2277,12 @@ static BOOL net_io_sam_alias_info(const char *desc, SAM_ALIAS_INFO * info,
if (!smb_io_buffer4("buf_sec_desc", &info->buf_sec_desc, if (!smb_io_buffer4("buf_sec_desc", &info->buf_sec_desc,
info->hdr_sec_desc.buffer, ps, depth)) info->hdr_sec_desc.buffer, ps, depth))
return False; return False;
if (!smb_io_unistr2("uni_als_desc", &info->uni_als_desc,
info->hdr_als_name.buffer, ps, depth)) if (info->hdr_als_desc.buffer != 0) {
return False; if (!smb_io_unistr2("uni_als_desc", &info->uni_als_desc,
info->hdr_als_name.buffer, ps, depth))
return False;
}
return True; return True;
} }