commit 23ac500059fe541c262531df0c2877bd1f547887 from: Stefan Sperling via: Thomas Adam date: Mon Jan 23 18:21:06 2023 UTC return GOT_ERR_EOF from pkt.c if a read attempt indicates EOF ok jamsek commit - 94a71055f46811ae239b1b26205482f35fbf85e9 commit + 23ac500059fe541c262531df0c2877bd1f547887 blob - 4330e9e71a7dcd41735ee2f4222e4f39e824d121 blob + fad7f03e4f70f1513ceb7af03bb71e1e7907a950 --- lib/pkt.c +++ lib/pkt.c @@ -36,7 +36,7 @@ got_pkt_readn(ssize_t *off, int fd, void *buf, size_t if (r == -1) return got_error_from_errno("read"); if (r == 0) - return NULL; + return got_error(GOT_ERR_EOF); *off += r; } return NULL;