From bfc5edb07582e78533e8e47817abfb0b44edea33 Mon Sep 17 00:00:00 2001 From: Vladislav Grishenko Date: Wed, 29 Nov 2017 00:21:08 +0500 Subject: sstp: treat SSL errors as EIO --- accel-pppd/ctrl/sstp/sstp.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'accel-pppd/ctrl') diff --git a/accel-pppd/ctrl/sstp/sstp.c b/accel-pppd/ctrl/sstp/sstp.c index bfd61c1..dc2a1a2 100644 --- a/accel-pppd/ctrl/sstp/sstp.c +++ b/accel-pppd/ctrl/sstp/sstp.c @@ -416,7 +416,9 @@ static ssize_t ssl_stream_read(struct sstp_stream_t *stream, void *buf, size_t c errno = EAGAIN; /* fall through */ case SSL_ERROR_SYSCALL: + return -1; default: + errno = EIO; return -1; } } @@ -437,7 +439,9 @@ static ssize_t ssl_stream_write(struct sstp_stream_t *stream, const void *buf, s errno = EAGAIN; /* fall through */ case SSL_ERROR_SYSCALL: + return -1; default: + errno = EIO; return -1; } } -- cgit v1.2.3