From: Jeremy Allison Date: Fri, 17 Sep 2004 21:20:32 +0000 (+0000) Subject: r2396: Fix bug found by Cornelio Bondad Jr . X-Git-Tag: samba-4.0.0alpha6~801^2~11216 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7418d20abe0870745f4845de59aa92128ea646ef;p=thirdparty%2Fsamba.git r2396: Fix bug found by Cornelio Bondad Jr . To correct “net rpc vampire” core dump. Jeremy. (This used to be commit cd910ffc510f2007c2619d7a4d31e5e41de7d1d1) --- diff --git a/source3/rpc_parse/parse_net.c b/source3/rpc_parse/parse_net.c index b42b9b2a8b4..813316177ac 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; }