Skip to content

Commit 2256f8d

Browse files
committed
lib/fetch: set error on read failures
1 parent 7553cb7 commit 2256f8d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/fetch/common.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1543,8 +1543,10 @@ fetch_read(conn_t *conn, char *buf, size_t len)
15431543
if (rlen >= 0)
15441544
break;
15451545

1546-
if (errno != EINTR || !fetchRestartCalls)
1546+
if (errno != EINTR || !fetchRestartCalls) {
1547+
fetch_syserr();
15471548
return (-1);
1549+
}
15481550
}
15491551
return (rlen);
15501552
}

0 commit comments

Comments
 (0)