r2396: Fix bug found by Cornelio Bondad Jr <Corny.Bondad@hp.com>.
authorJeremy Allison <jra@samba.org>
Fri, 17 Sep 2004 21:20:32 +0000 (21:20 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:42 +0000 (10:52 -0500)
To correct “net rpc vampire” core dump.
Jeremy.

source/rpc_parse/parse_net.c

index b42b9b2a8b41cba99cca0e2924a55d29d7ba4fcc..813316177ac74e2f2a7dede2b87439ea0b7ffd7c 100644 (file)
@@ -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;
 }