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:
parent
6dea60e3b9
commit
cccd59009d
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user