We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb75059 commit 029c445Copy full SHA for 029c445
1 file changed
src/protocol/SSLWrapper.cc
@@ -203,16 +203,13 @@ int SSLWrapper::append_message()
203
} while (nleft > 0);
204
}
205
206
- if (ret < 0)
+ ret = SSL_get_error(this->ssl, ret);
207
+ if (ret != SSL_ERROR_WANT_READ)
208
{
- ret = SSL_get_error(this->ssl, ret);
209
- if (ret != SSL_ERROR_WANT_READ)
210
- {
211
- if (ret != SSL_ERROR_SYSCALL)
212
- errno = -ret;
+ if (ret != SSL_ERROR_SYSCALL)
+ errno = -ret;
213
214
- return -1;
215
- }
+ return -1;
216
217
218
return 0;
0 commit comments