git.samba.org
/
gd
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7798c7e
)
Survive a samdump with an alias that has no description
author
Volker Lendecke
<vlendec@samba.org>
Fri, 18 Apr 2003 08:35:08 +0000
(08:35 +0000)
committer
Volker Lendecke
<vlendec@samba.org>
Fri, 18 Apr 2003 08:35:08 +0000
(08:35 +0000)
Volker
source/rpc_parse/parse_net.c
patch
|
blob
|
history
diff --git
a/source/rpc_parse/parse_net.c
b/source/rpc_parse/parse_net.c
index 163e6bab3caf9a5d277d62df9358937749df54db..2c99d54b1b5b02916adaeb6753b9c6a769fd5f04 100644
(file)
--- 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;
}