diff options
-rw-r--r-- | source3/modules/vfs_aio_fork.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/modules/vfs_aio_fork.c b/source3/modules/vfs_aio_fork.c index 0cea931a6d..4ddc71ee9d 100644 --- a/source3/modules/vfs_aio_fork.c +++ b/source3/modules/vfs_aio_fork.c @@ -407,6 +407,12 @@ static void handle_aio_completion(struct event_context *event_ctx, child->retval.ret_errno = EIO; } + if (child->aiocb == NULL) { + DEBUG(1, ("Inactive child died\n")); + TALLOC_FREE(child); + return; + } + if (child->cancelled) { child->aiocb = NULL; child->cancelled = false; |