From 9e6464c5f9d82158d81c027207594b5e12a94ca5 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 26 Nov 2016 09:17:16 +0000 Subject: stls_run: fix "read from peer" error message --- src/stls/stls_run.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stls/stls_run.c b/src/stls/stls_run.c index 125e7f2..5c67034 100644 --- a/src/stls/stls_run.c +++ b/src/stls/stls_run.c @@ -255,7 +255,7 @@ int stls_run (struct tls *ctx, int *fds, unsigned int verbosity, uint32 options, r = buffer_tls_fill(ctx, b) ; if (r < 0) { - if (r == -1) strerr_warnwu1sys("read from peer") ; + if (r == -1) strerr_warnwu2x("read from peer: ", tls_error(ctx)) ; if (options & 1) shutdown(fds[2], SHUT_RD) ; fd_close(fds[2]) ; fds[2] = -1 ; if (buffer_isempty(&b[1].b)) -- cgit v1.2.3