From: Simo Sorce Date: Tue, 20 Nov 2007 23:19:54 +0000 (-0500) Subject: 32/64 bit compatibility fix X-Git-Tag: samba-3.0.27a~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9acd56a247abdc1334fa011063940db6e0d65370;p=thirdparty%2Fsamba.git 32/64 bit compatibility fix this patch fixes platform where 32 and 64 bit apps can run at the same time fixed in and tested in Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=253036 --- diff --git a/source/nsswitch/winbindd.c b/source/nsswitch/winbindd.c index 34f04adab2e..9bbc0f088b0 100644 --- a/source/nsswitch/winbindd.c +++ b/source/nsswitch/winbindd.c @@ -540,8 +540,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 %d)\n", + *(uint32 *)(&state->request), sizeof(state->request))); state->finished = True; return; } diff --git a/source/nsswitch/winbindd_nss.h b/source/nsswitch/winbindd_nss.h index b6c262e4667..135849ae8fb 100644 --- a/source/nsswitch/winbindd_nss.h +++ b/source/nsswitch/winbindd_nss.h @@ -319,7 +319,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;