hurl

Gopher/HTTP/HTTPS file grabber
git clone git://git.codemadness.org/hurl
Log | Files | Refs | README | LICENSE

commit 6a18a28e5de88e5d15df3bb1b1dd2adb4ea422d9
parent 211f680bec370eb261142b8b4eb615b37a4cf576
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Tue, 20 Nov 2018 09:48:28 +0100

fix tls_write error handling, typo from 49f3642c

Diffstat:
Mhurl.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hurl.c b/hurl.c @@ -215,9 +215,10 @@ https_request(void) "Connection: close\r\n" "%s" "\r\n", u.path, u.host, config_custom ? config_custom : ""); - if ((r = tls_write(t, buf, strlen(buf))) == -1) + if ((r = tls_write(t, buf, strlen(buf))) == -1) { fprintf(stderr, "tls_write: %s\n", tls_error(t)); goto err; + } /* NOTE: HTTP header must fit in the buffer */ for (len = 0; len < sizeof(buf); len += r) {