summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-09-17 21:20:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:42 -0500
commitcd910ffc510f2007c2619d7a4d31e5e41de7d1d1 (patch)
tree170bbc50325fe9bd0bebf5d497df0369745f2cb9
parent9a6e331639d7aace294dd663de7d27912fcae146 (diff)
downloadsamba-cd910ffc510f2007c2619d7a4d31e5e41de7d1d1.tar.gz
samba-cd910ffc510f2007c2619d7a4d31e5e41de7d1d1.tar.xz
samba-cd910ffc510f2007c2619d7a4d31e5e41de7d1d1.zip
r2396: Fix bug found by Cornelio Bondad Jr <Corny.Bondad@hp.com>.
To correct “net rpc vampire” core dump. Jeremy.
-rw-r--r--source/rpc_parse/parse_net.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source/rpc_parse/parse_net.c b/source/rpc_parse/parse_net.c
index b42b9b2a8b4..813316177ac 100644
--- a/source/rpc_parse/parse_net.c
+++ b/source/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;
}