From 2b6654a23925a3ce9d596030e6eebcf543eddbd5 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 28 Aug 2021 00:59:14 -0700 Subject: journals: propagate errors from journal_read() (unlikely) dispatch errors were being dropped on the floor --- src/journals.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/journals.c') diff --git a/src/journals.c b/src/journals.c index f7fdc50..27b2756 100644 --- a/src/journals.c +++ b/src/journals.c @@ -123,9 +123,7 @@ int journal_read(iou_t *iou, journal_t *journal, uint64_t offset, uint64_t lengt buf_used(journal, buf); memcpy(dest, &buf->data[offset - buf->offset], length); - thunk_dispatch(closure); - - return 0; + return thunk_end(thunk_dispatch(closure)); } } -- cgit v1.2.3