1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +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:
Jeremy Allison 2003-06-30 20:41:40 +00:00
parent 9fda812d01
commit a32ae05744

View File

@ -29,7 +29,7 @@
static NTSTATUS get_info3_from_ndr(TALLOC_CTX *mem_ctx, struct winbindd_response *response, NET_USER_INFO_3 *info3)
{
uint8 *info3_ndr;
size_t len = response->length - sizeof(response);
size_t len = response->length - sizeof(struct winbindd_response);
prs_struct ps;
if (len > 0) {
info3_ndr = response->extra_data;