diff options
Diffstat (limited to 'source4/ntvfs/posix/pvfs_wait.c')
-rw-r--r-- | source4/ntvfs/posix/pvfs_wait.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/ntvfs/posix/pvfs_wait.c b/source4/ntvfs/posix/pvfs_wait.c index d396b94da1..5552ab0d1b 100644 --- a/source4/ntvfs/posix/pvfs_wait.c +++ b/source4/ntvfs/posix/pvfs_wait.c @@ -78,13 +78,12 @@ static void pvfs_wait_dispatch(struct messaging_context *msg, } pwait->reason = PVFS_WAIT_EVENT; - req = pwait->req; /* the extra reference here is to ensure that the req structure is not destroyed when the async request reply is sent, which would cause problems with the other ntvfs modules above us */ - talloc_reference(msg, req); + req = talloc_reference(msg, pwait->req); ntvfs_async_setup(pwait->req, pwait); talloc_unlink(msg, req); } @@ -185,7 +184,8 @@ struct pvfs_wait *pvfs_wait_message(struct pvfs_state *pvfs, */ NTSTATUS pvfs_cancel(struct ntvfs_module_context *ntvfs, struct ntvfs_request *req) { - struct pvfs_state *pvfs = ntvfs->private_data; + struct pvfs_state *pvfs = talloc_get_type(ntvfs->private_data, + struct pvfs_state); struct pvfs_wait *pwait; for (pwait=pvfs->wait_list;pwait;pwait=pwait->next) { |