summaryrefslogtreecommitdiff
path: root/source3/auth/auth_winbind.c
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
commita32ae05744e8e065bc4be56e93875c29182bb760 (patch)
tree3db0225d9c15d35357f876a93a0c98bc53171716 /source3/auth/auth_winbind.c
parent9fda812d01d899603f7a6f7470e57de53f5c0593 (diff)
downloadsamba-a32ae05744e8e065bc4be56e93875c29182bb760.tar.gz
samba-a32ae05744e8e065bc4be56e93875c29182bb760.tar.bz2
samba-a32ae05744e8e065bc4be56e93875c29182bb760.zip
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 492a96e9922c1ef96b967f2965f8bba1f5bc8f23)
Diffstat (limited to 'source3/auth/auth_winbind.c')
-rw-r--r--source3/auth/auth_winbind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/auth/auth_winbind.c b/source3/auth/auth_winbind.c
index 0b19746597..6ae8685b11 100644
--- a/source3/auth/auth_winbind.c
+++ b/source3/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;