summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-06-30 20:41:40 +0000
committerJeremy Allison <jra@samba.org>2003-06-30 20:41:40 +0000
commit492a96e9922c1ef96b967f2965f8bba1f5bc8f23 (patch)
treed20c3eab4860141d622e8faed3170acc9c197397 /source
parentfa23a4158ec23c0b8dbdc6c53f29958243107dee (diff)
downloadsamba-492a96e9922c1ef96b967f2965f8bba1f5bc8f23.tar.gz
samba-492a96e9922c1ef96b967f2965f8bba1f5bc8f23.tar.xz
samba-492a96e9922c1ef96b967f2965f8bba1f5bc8f23.zip
Valgrind found a bug (subtracting a pointer from a length rather than the
length of what the pointer points to). Jeremy.
Diffstat (limited to 'source')
-rw-r--r--source/auth/auth_winbind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/auth/auth_winbind.c b/source/auth/auth_winbind.c
index 0b19746597d..6ae8685b113 100644
--- a/source/auth/auth_winbind.c
+++ b/source/auth/auth_winbind.c
@@ -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;