]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_fruit: add missing calls to tevent_req_received()
authorRalph Boehme <slow@samba.org>
Thu, 6 Oct 2022 12:31:08 +0000 (14:31 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 6 Oct 2022 22:03:35 +0000 (22:03 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15182

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
source3/modules/vfs_fruit.c

index 3b657f92b3df6fc46211fcbaaeeca817cc7db684..4058d4834e72dfe661e6bd20af286e458adf2386 100644 (file)
@@ -2635,13 +2635,17 @@ static ssize_t fruit_pread_recv(struct tevent_req *req,
 {
        struct fruit_pread_state *state = tevent_req_data(
                req, struct fruit_pread_state);
+       ssize_t retval = -1;
 
        if (tevent_req_is_unix_error(req, &vfs_aio_state->error)) {
+               tevent_req_received(req);
                return -1;
        }
 
        *vfs_aio_state = state->vfs_aio_state;
-       return state->nread;
+       retval = state->nread;
+       tevent_req_received(req);
+       return retval;
 }
 
 static ssize_t fruit_pwrite_meta_stream(vfs_handle_struct *handle,
@@ -3062,13 +3066,17 @@ static ssize_t fruit_pwrite_recv(struct tevent_req *req,
 {
        struct fruit_pwrite_state *state = tevent_req_data(
                req, struct fruit_pwrite_state);
+       ssize_t retval = -1;
 
        if (tevent_req_is_unix_error(req, &vfs_aio_state->error)) {
+               tevent_req_received(req);
                return -1;
        }
 
        *vfs_aio_state = state->vfs_aio_state;
-       return state->nwritten;
+       retval = state->nwritten;
+       tevent_req_received(req);
+       return retval;
 }
 
 struct fruit_fsync_state {