summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-05-15 18:23:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:52:30 -0500
commit283aeb2a37ba7fd05957ae15bd83276cadf31f0a (patch)
treeaeea4516ca23080c5dc7ed706ab6798c4ba77e54 /source4/ntvfs/posix
parent976d97f4032f9f6106af74cf18ecd0ae5e620a07 (diff)
downloadsamba-283aeb2a37ba7fd05957ae15bd83276cadf31f0a.tar.gz
samba-283aeb2a37ba7fd05957ae15bd83276cadf31f0a.tar.bz2
samba-283aeb2a37ba7fd05957ae15bd83276cadf31f0a.zip
r22913: try to work arround the unaligned memory access bug on Tru64
metze (This used to be commit 3a7a30ab1cf724ad2420ae2a1011479fffd826fe)
Diffstat (limited to 'source4/ntvfs/posix')
-rw-r--r--source4/ntvfs/posix/pvfs_wait.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source4/ntvfs/posix/pvfs_wait.c b/source4/ntvfs/posix/pvfs_wait.c
index 3d0bb465e3..e21b5766cb 100644
--- a/source4/ntvfs/posix/pvfs_wait.c
+++ b/source4/ntvfs/posix/pvfs_wait.c
@@ -61,14 +61,20 @@ static void pvfs_wait_dispatch(struct messaging_context *msg, void *private, uin
{
struct pvfs_wait *pwait = private;
struct ntvfs_request *req;
+ void *p = NULL;
/* we need to check that this one is for us. See
messaging_send_ptr() for the other side of this.
*/
- if (data->length != sizeof(void *) ||
- *(void **)data->data != pwait->private) {
+ if (data->length == sizeof(void *)) {
+ void **pp;
+ pp = (void **)data->data;
+ p = *pp;
+ }
+ if (p == NULL || p != pwait->private) {
return;
}
+
pwait->reason = PVFS_WAIT_EVENT;
req = pwait->req;