diff options
author | Vladislav Grishenko <themiron@mail.ru> | 2017-11-29 00:21:08 +0500 |
---|---|---|
committer | Vladislav Grishenko <themiron@mail.ru> | 2017-12-30 22:48:52 +0500 |
commit | bfc5edb07582e78533e8e47817abfb0b44edea33 (patch) | |
tree | 8762f6cacfe7c1dffe157e784077b98ff9777f4e /accel-pppd/ctrl | |
parent | b75f1663f44fbeff4479998e37cdf208117be40a (diff) | |
download | accel-ppp-bfc5edb07582e78533e8e47817abfb0b44edea33.tar.gz accel-ppp-bfc5edb07582e78533e8e47817abfb0b44edea33.zip |
sstp: treat SSL errors as EIO
Diffstat (limited to 'accel-pppd/ctrl')
-rw-r--r-- | accel-pppd/ctrl/sstp/sstp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/sstp/sstp.c b/accel-pppd/ctrl/sstp/sstp.c index bfd61c1a..dc2a1a2e 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; } } |