mirror of
https://github.com/samba-team/samba.git
synced 2025-08-05 12:22:11 +03:00
libcli/raw: remove unused smb_raw_max_trans_data() function
metze
(This used to be commit d235ce6737
)
This commit is contained in:
@ -959,15 +959,3 @@ NTSTATUS smb_raw_nttrans(struct smbcli_tree *tree,
|
|||||||
|
|
||||||
return smb_raw_nttrans_recv(req, mem_ctx, parms);
|
return smb_raw_nttrans_recv(req, mem_ctx, parms);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
work out the maximum data size for a trans request while avoiding
|
|
||||||
multi-part replies
|
|
||||||
|
|
||||||
TODO: we only need to avoid multi-part replies because the
|
|
||||||
multi-part trans receive code is broken.
|
|
||||||
*/
|
|
||||||
_PUBLIC_ size_t smb_raw_max_trans_data(struct smbcli_tree *tree, size_t param_size)
|
|
||||||
{
|
|
||||||
return tree->session->transport->negotiate.max_xmit - (70 + param_size);
|
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user