diff options
author | Christof Schmitt <christof.schmitt@us.ibm.com> | 2013-08-05 11:16:22 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-08-05 17:10:56 -0700 |
commit | 30e724cbff1ecd90e5a676831902d1e41ec1b347 (patch) | |
tree | 9d83e7129fa09c45a70bf1e72450b81562af0b1e | |
parent | 270d29a743a030653037cb176f3764bec3c79b6c (diff) | |
download | samba-30e724cbff1ecd90e5a676831902d1e41ec1b347.tar.gz samba-30e724cbff1ecd90e5a676831902d1e41ec1b347.tar.bz2 samba-30e724cbff1ecd90e5a676831902d1e41ec1b347.zip |
FSCTL_GET_SHADOW_COPY_DATA: Initialize output array to zero
Otherwise num_volumes and the end marker can return uninitialized data
to the client.
Signed-off-by: Christof Schmitt <christof.schmitt@us.ibm.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Simo Sorce <idra@samba.org>
-rw-r--r-- | source3/modules/vfs_default.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index 82d059c28f..efb020425c 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -1151,7 +1151,7 @@ static NTSTATUS vfswrap_fsctl(struct vfs_handle_struct *handle, return NT_STATUS_BUFFER_TOO_SMALL; } - cur_pdata = talloc_array(ctx, char, *out_len); + cur_pdata = talloc_zero_array(ctx, char, *out_len); if (cur_pdata == NULL) { TALLOC_FREE(shadow_data); return NT_STATUS_NO_MEMORY; |