r3034: - fixed a bug in message dispatch, when the dispatch function called messagin...
[jelmer/samba4-debian.git] / source / ntvfs / posix / pvfs_wait.c
index 1d6da6aaf815157afb5d7dac88d1bc972b343d93..5815b8eddead4cd9d34b56981965b9e26a854b82 100644 (file)
@@ -71,7 +71,7 @@ static void pvfs_wait_timeout(struct event_context *ev, struct timed_event *te,
 static int pvfs_wait_destructor(void *ptr)
 {
        struct pvfs_wait *pwait = ptr;
-       messaging_deregister(pwait->msg_ctx, pwait->msg_type, pwait->private);
+       messaging_deregister(pwait->msg_ctx, pwait->msg_type, pwait);
        event_remove_timed(pwait->ev, pwait->te);
        return 0;
 }