mirror of
https://github.com/samba-team/samba.git
synced 2025-11-20 08:23:50 +03:00
r24994: Fix some C++ warnings.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
a5a1a55405
commit
925abf74fa
@@ -83,7 +83,7 @@ struct smbcli_request *smbcli_request_setup_nonsmb(struct smbcli_transport *tran
|
||||
/* over allocate by a small amount */
|
||||
req->out.allocated = req->out.size + REQ_OVER_ALLOCATION;
|
||||
|
||||
req->out.buffer = talloc_size(req, req->out.allocated);
|
||||
req->out.buffer = talloc_array(req, uint8_t, req->out.allocated);
|
||||
if (!req->out.buffer) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user