summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-04-18 08:36:12 +0000
committerVolker Lendecke <vlendec@samba.org>2003-04-18 08:36:12 +0000
commitcdb197135f504683112826d26f360d79a13ae346 (patch)
treea9d240aec14d3558de85030e8c92caf0e88b0efb /source3/rpc_parse
parenta4c20fc76b3fd2f1f7f0322b5b6d4520d6a95ebe (diff)
downloadsamba-cdb197135f504683112826d26f360d79a13ae346.tar.gz
samba-cdb197135f504683112826d26f360d79a13ae346.tar.bz2
samba-cdb197135f504683112826d26f360d79a13ae346.zip
Survive a samdump with an alias that has no description
Volker (This used to be commit 408a94b64d4d799f256c11a2009e161b27553cbb)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_net.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/rpc_parse/parse_net.c b/source3/rpc_parse/parse_net.c
index a660084250..259ca7fdc1 100644
--- a/source3/rpc_parse/parse_net.c
+++ b/source3/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;
}