commit - c1ce79919bdc9d72d4eb38535e842c83d3e797b2
commit + 4131be84e8f3fca2cd1d5f7a36fe763f73f47656
blob - a752190fc69ea84c70541d0785a534cf85d3ecb3
blob + 383d4aa4253b31679f7eaa3536201fccfd0bb9e9
--- libexec/got-fetch-http/got-fetch-http.c
+++ libexec/got-fetch-http/got-fetch-http.c
{
int r;
- if (bufio_compose_fmt(bio, "%zx\r\n", len) ||
- bufio_compose(bio, buf, len) ||
- bufio_compose(bio, "\r\n", 2))
+ if (bufio_compose_fmt(bio, "%zx\r\n", len) == -1 ||
+ bufio_compose(bio, buf, len) == -1 ||
+ bufio_compose(bio, "\r\n", 2) == -1)
return 1;
do {