Skip to content

Commit 81a5ce9

Browse files
committed
Ensure we've consumed entire body in git_http_client_skip_body
1 parent 7617d1f commit 81a5ce9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transports/httpclient.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1503,7 +1503,7 @@ int git_http_client_skip_body(git_http_client *client)
15031503
"unexpected data handled in callback");
15041504
error = -1;
15051505
}
1506-
} while (!error);
1506+
} while (error >= 0 && client->state != DONE);
15071507

15081508
if (error < 0)
15091509
client->connected = 0;

0 commit comments

Comments
 (0)