1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

Merge Tridge's fix for the winbind 32/64bit padding.

Guenther
This commit is contained in:
Günther Deschner 2007-10-19 13:03:44 +02:00
parent 9cb1937fe8
commit 36578b22f1
2 changed files with 3 additions and 3 deletions

View File

@ -326,7 +326,7 @@ struct winbindd_request {
The size is the sizeof the union without the padding aligned on
an 8 byte boundary. --jerry */
char padding[1560];
char padding[1800];
} data;
union {
SMB_TIME_T padding;

View File

@ -613,8 +613,8 @@ static void request_len_recv(void *private_data, bool success)
}
if (*(uint32 *)(&state->request) != sizeof(state->request)) {
DEBUG(0,("request_len_recv: Invalid request size received: %d\n",
*(uint32 *)(&state->request)));
DEBUG(0,("request_len_recv: Invalid request size received: %d (expected %u)\n",
*(uint32_t *)(&state->request), (uint32_t)sizeof(state->request)));
state->finished = True;
return;
}