diff options
author | Volker Lendecke <vlendec@samba.org> | 2003-04-18 08:36:12 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2003-04-18 08:36:12 +0000 |
commit | 408a94b64d4d799f256c11a2009e161b27553cbb (patch) | |
tree | 27e35044a1745eaea02506893ee7313b1fdfea00 /source/rpc_parse | |
parent | 571e14bd07148d95e3e83167e83362bec0502d55 (diff) | |
download | samba-408a94b64d4d799f256c11a2009e161b27553cbb.tar.gz samba-408a94b64d4d799f256c11a2009e161b27553cbb.tar.xz samba-408a94b64d4d799f256c11a2009e161b27553cbb.zip |
Survive a samdump with an alias that has no description
Volker
Diffstat (limited to 'source/rpc_parse')
-rw-r--r-- | source/rpc_parse/parse_net.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/rpc_parse/parse_net.c b/source/rpc_parse/parse_net.c index a660084250e..259ca7fdc13 100644 --- a/source/rpc_parse/parse_net.c +++ b/source/rpc_parse/parse_net.c @@ -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, info->hdr_sec_desc.buffer, ps, depth)) return False; - if (!smb_io_unistr2("uni_als_desc", &info->uni_als_desc, - info->hdr_als_name.buffer, ps, depth)) - return False; + + if (info->hdr_als_desc.buffer != 0) { + if (!smb_io_unistr2("uni_als_desc", &info->uni_als_desc, + info->hdr_als_name.buffer, ps, depth)) + return False; + } return True; } |