1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-17 02:05:21 +03:00

r3054: use talloc_zero_array_p() in a couple of places

This commit is contained in:
Andrew Tridgell 2004-10-19 06:31:37 +00:00 committed by Gerald (Jerry) Carter
parent 6dea60e3b9
commit cccd59009d
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ static void nttrans_setup_reply(struct smbsrv_request *req,
{
trans->out.setup_count = setup_count;
if (setup_count != 0) {
trans->out.setup = talloc_zero(req, sizeof(uint16_t) * setup_count);
trans->out.setup = talloc_zero_array_p(req, uint16_t, setup_count);
}
trans->out.params = data_blob_talloc(req, NULL, param_size);
trans->out.data = data_blob_talloc(req, NULL, data_size);

View File

@ -73,7 +73,7 @@ static void trans2_setup_reply(struct smbsrv_request *req,
{
trans->out.setup_count = setup_count;
if (setup_count != 0) {
trans->out.setup = talloc_zero(req, sizeof(uint16_t) * setup_count);
trans->out.setup = talloc_zero_array_p(req, uint16_t, setup_count);
}
trans->out.params = data_blob_talloc(req, NULL, param_size);
trans->out.data = data_blob_talloc(req, NULL, data_size);