The HTTP chunked transfer encoding test in regress/usr.sbin/rpki-client/libressl
authoranton <anton@openbsd.org>
Tue, 5 Oct 2021 05:33:46 +0000 (05:33 +0000)
committeranton <anton@openbsd.org>
Tue, 5 Oct 2021 05:33:46 +0000 (05:33 +0000)
commit0fec2b2fd1fe9639e5e685582d3af36f98f79533
tree441ca442572c0114d7ccb631496753bbad8a3687
parent3780906a2ab0a26fbf18b1fa2fa359aa1d8aada3
The HTTP chunked transfer encoding test in regress/usr.sbin/rpki-client/libressl
often fails. It happens when the HTTP parser reads more than one chunk in a
single tls_read() invocation causing the state machine to think it needs to read
more data while buffer already contains unexamined data. Considering a non-empty
buffer before tls_read() fixes the problem.

ok benno@ claudio@
usr.sbin/rpki-client/http.c