diff options
Diffstat (limited to 'src/lib/libssl/s23_lib.c')
-rw-r--r-- | src/lib/libssl/s23_lib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libssl/s23_lib.c b/src/lib/libssl/s23_lib.c index 3bf728318a..a6285b767f 100644 --- a/src/lib/libssl/s23_lib.c +++ b/src/lib/libssl/s23_lib.c | |||
@@ -121,7 +121,7 @@ int ssl23_read(SSL *s, void *buf, int len) | |||
121 | { | 121 | { |
122 | int n; | 122 | int n; |
123 | 123 | ||
124 | clear_sys_error(); | 124 | errno = 0; |
125 | if (SSL_in_init(s) && (!s->in_handshake)) | 125 | if (SSL_in_init(s) && (!s->in_handshake)) |
126 | { | 126 | { |
127 | n=s->handshake_func(s); | 127 | n=s->handshake_func(s); |
@@ -144,7 +144,7 @@ int ssl23_peek(SSL *s, void *buf, int len) | |||
144 | { | 144 | { |
145 | int n; | 145 | int n; |
146 | 146 | ||
147 | clear_sys_error(); | 147 | errno = 0; |
148 | if (SSL_in_init(s) && (!s->in_handshake)) | 148 | if (SSL_in_init(s) && (!s->in_handshake)) |
149 | { | 149 | { |
150 | n=s->handshake_func(s); | 150 | n=s->handshake_func(s); |
@@ -167,7 +167,7 @@ int ssl23_write(SSL *s, const void *buf, int len) | |||
167 | { | 167 | { |
168 | int n; | 168 | int n; |
169 | 169 | ||
170 | clear_sys_error(); | 170 | errno = 0; |
171 | if (SSL_in_init(s) && (!s->in_handshake)) | 171 | if (SSL_in_init(s) && (!s->in_handshake)) |
172 | { | 172 | { |
173 | n=s->handshake_func(s); | 173 | n=s->handshake_func(s); |