summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2016-11-26 09:17:16 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2016-11-26 09:17:16 +0000
commit9e6464c5f9d82158d81c027207594b5e12a94ca5 (patch)
tree2960fb2b2dc356e0d9c82bc9d19863f9e15785f6 /src
parent2b862702f3c422fc561200cf3c172fc2334dd9b4 (diff)
downloads6-networking-9e6464c5f9d82158d81c027207594b5e12a94ca5.tar.xz
stls_run: fix "read from peer" error message
Diffstat (limited to 'src')
-rw-r--r--src/stls/stls_run.c2
1 files changed, 1 insertions, 1 deletions
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))