Log to stderr for tls_write. - geomyidae - A small C-based gopherd. | |
git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/ | |
Log | |
Files | |
Refs | |
Tags | |
README | |
LICENSE | |
--- | |
commit 0c4826690932856f9470dafd51fdeb8aa182c7ac | |
parent 8c16e613e8c3eea49d51a01a0009258f9e1caafa | |
Author: Christoph Lohmann <20h@r-36.net> | |
Date: Sun, 7 Jun 2020 20:33:38 +0200 Log to stderr for tls_write. Diffstat: M main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- | |
diff --git a/main.c b/main.c | |
@@ -802,7 +802,7 @@ main(int argc, char *argv[]) for (shufpos = 0; shufpos < shuflen; shufpos += wlen) { wlen = tls_write(tlsclientctx, shufbuf+shufpos, shuflen-shufpos); if (wlen < 0) { - printf("tls_write failed: %s\n", tls_error(tlsclientctx)); + fprintf(stderr, "tls_write failed: %s\n", tls_error(tlsclientctx)); return 1; } } |