diff options
author | Jeremy Allison <jra@samba.org> | 2004-09-17 21:20:32 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:52:42 -0500 |
commit | 7418d20abe0870745f4845de59aa92128ea646ef (patch) | |
tree | 6ef06517456ad595e153e11dc0ae381e178e01db /source3 | |
parent | dac628429dd50c6b51327925cd95d6396c5332c8 (diff) | |
download | samba-7418d20abe0870745f4845de59aa92128ea646ef.tar.gz samba-7418d20abe0870745f4845de59aa92128ea646ef.tar.bz2 samba-7418d20abe0870745f4845de59aa92128ea646ef.zip |
r2396: Fix bug found by Cornelio Bondad Jr <Corny.Bondad@hp.com>.
To correct “net rpc vampire” core dump.
Jeremy.
(This used to be commit cd910ffc510f2007c2619d7a4d31e5e41de7d1d1)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_parse/parse_net.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source3/rpc_parse/parse_net.c b/source3/rpc_parse/parse_net.c index b42b9b2a8b..813316177a 100644 --- a/source3/rpc_parse/parse_net.c +++ b/source3/rpc_parse/parse_net.c @@ -2399,11 +2399,9 @@ static BOOL net_io_sam_alias_info(const char *desc, SAM_ALIAS_INFO * info, info->hdr_sec_desc.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; - } + if (!smb_io_unistr2("uni_als_desc", &info->uni_als_desc, + info->hdr_als_desc.buffer, ps, depth)) + return False; return True; } |