fixed a valgrind error in id mapping
authorAndrew Tridgell <tridge@samba.org>
Mon, 14 Apr 2008 16:59:40 +0000 (18:59 +0200)
committerAndrew Tridgell <tridge@samba.org>
Mon, 14 Apr 2008 16:59:40 +0000 (18:59 +0200)
the status field is sent on both call and reply, but was only being
initialised on reply
(This used to be commit 2ebd7b80998775168959d511fbc987f8b5b7bd34)

source4/ntvfs/posix/pvfs_acl.c

index 2393a2e7a3c2d3bb19895c3dcf8c8b14d0cc0323..f1e469f7909fdb9b8b394cd36687fea606fa844f 100644 (file)
@@ -135,7 +135,7 @@ static NTSTATUS pvfs_default_acl(struct pvfs_state *pvfs,
        }
        sd = *psd;
 
-       ids = talloc_array(sd, struct id_mapping, 2);
+       ids = talloc_zero_array(sd, struct id_mapping, 2);
        NT_STATUS_HAVE_NO_MEMORY(ids);
 
        ids[0].unixid = talloc(ids, struct unixid);