summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-04-18 08:35:08 +0000
committerVolker Lendecke <vlendec@samba.org>2003-04-18 08:35:08 +0000
commite54b9d59d6985df8fc66dce36968ce98df710742 (patch)
treedca478d7e7745d0c7db02c94d4071139f70ce7a5 /source3/rpc_parse
parentfb3ff5fc4426ce343bcbdc0648cb112208571821 (diff)
downloadsamba-e54b9d59d6985df8fc66dce36968ce98df710742.tar.gz
samba-e54b9d59d6985df8fc66dce36968ce98df710742.tar.bz2
samba-e54b9d59d6985df8fc66dce36968ce98df710742.zip
Survive a samdump with an alias that has no description
Volker (This used to be commit 5af417a6ba24e6bb09979488511f482efa4894b8)
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 163e6bab3c..2c99d54b1b 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;
}