diff options
-rw-r--r-- | source3/nsswitch/winbind_struct_protocol.h | 2 | ||||
-rw-r--r-- | source3/winbindd/winbindd.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/nsswitch/winbind_struct_protocol.h b/source3/nsswitch/winbind_struct_protocol.h index d8e5c2f3b8..0e3ad8bcaf 100644 --- a/source3/nsswitch/winbind_struct_protocol.h +++ b/source3/nsswitch/winbind_struct_protocol.h @@ -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; diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c index 057790a541..d5f24d7aa2 100644 --- a/source3/winbindd/winbindd.c +++ b/source3/winbindd/winbindd.c @@ -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; } |