summaryrefslogtreecommitdiff
path: root/usr.sbin/rpki-client/http.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/rpki-client/http.c')
-rw-r--r--usr.sbin/rpki-client/http.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/rpki-client/http.c b/usr.sbin/rpki-client/http.c
index 486aeda4a13..9c20a964421 100644
--- a/usr.sbin/rpki-client/http.c
+++ b/usr.sbin/rpki-client/http.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: http.c,v 1.40 2021/09/23 13:26:51 tb Exp $ */
+/* $OpenBSD: http.c,v 1.41 2021/10/05 05:33:46 anton Exp $ */
/*
* Copyright (c) 2020 Nils Fisher <nils_fisher@hotmail.com>
* Copyright (c) 2020 Claudio Jeker <claudio@openbsd.org>
@@ -1311,6 +1311,9 @@ http_read(struct http_connection *conn)
char *buf;
int done;
+ if (conn->bufpos > 0)
+ goto again;
+
read_more:
s = tls_read(conn->tls, conn->buf + conn->bufpos,
conn->bufsz - conn->bufpos);