mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
r3347: fixed an uninitialised variable bug. Surprisingly hard to track down,
as valgrind got a corrupt stack when trying to debug it.
(This used to be commit 58cabaa702
)
This commit is contained in:
parent
6876fae4eb
commit
10ae616765
@ -417,14 +417,20 @@ static NTSTATUS nbench_copy(struct ntvfs_module_context *ntvfs,
|
||||
static void nbench_read_send(struct smbsrv_request *req)
|
||||
{
|
||||
union smb_read *rd = req->async_states->private_data;
|
||||
|
||||
uint32_t nread;
|
||||
|
||||
switch (rd->generic.level) {
|
||||
case RAW_READ_READX:
|
||||
if (NT_STATUS_IS_OK(req->async_states->status)) {
|
||||
nread = rd->readx.out.nread;
|
||||
} else {
|
||||
nread = 0;
|
||||
}
|
||||
nbench_log(req, "ReadX %d %d %d %d %s\n",
|
||||
rd->readx.in.fnum,
|
||||
(int)rd->readx.in.offset,
|
||||
rd->readx.in.maxcnt,
|
||||
rd->readx.out.nread,
|
||||
nread,
|
||||
get_nt_error_c_code(req->async_states->status));
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user