summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl
diff options
context:
space:
mode:
authorVladislav Grishenko <themiron@mail.ru>2017-11-29 00:21:08 +0500
committerVladislav Grishenko <themiron@mail.ru>2017-12-30 22:48:52 +0500
commitbfc5edb07582e78533e8e47817abfb0b44edea33 (patch)
tree8762f6cacfe7c1dffe157e784077b98ff9777f4e /accel-pppd/ctrl
parentb75f1663f44fbeff4479998e37cdf208117be40a (diff)
downloadaccel-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.c4
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;
}
}