mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
Valgrind found a bug (subtracting a pointer from a length rather than the
length of what the pointer points to).
Jeremy.
(This used to be commit 492a96e992
)
This commit is contained in:
parent
9fda812d01
commit
a32ae05744
@ -29,7 +29,7 @@
|
|||||||
static NTSTATUS get_info3_from_ndr(TALLOC_CTX *mem_ctx, struct winbindd_response *response, NET_USER_INFO_3 *info3)
|
static NTSTATUS get_info3_from_ndr(TALLOC_CTX *mem_ctx, struct winbindd_response *response, NET_USER_INFO_3 *info3)
|
||||||
{
|
{
|
||||||
uint8 *info3_ndr;
|
uint8 *info3_ndr;
|
||||||
size_t len = response->length - sizeof(response);
|
size_t len = response->length - sizeof(struct winbindd_response);
|
||||||
prs_struct ps;
|
prs_struct ps;
|
||||||
if (len > 0) {
|
if (len > 0) {
|
||||||
info3_ndr = response->extra_data;
|
info3_ndr = response->extra_data;
|
||||||
|
Loading…
Reference in New Issue
Block a user