diff --git a/src/SSLConnectionFailedException.m b/src/SSLConnectionFailedException.m index 545263f..21eb263 100644 --- a/src/SSLConnectionFailedException.m +++ b/src/SSLConnectionFailedException.m @@ -117,7 +117,8 @@ { self = [super initWithHost: host port: port - socket: socket]; + socket: socket + errNo: 0]; _SSLError = SSLError; _verifyResult = verifyResult; diff --git a/src/SSLSocket.m b/src/SSLSocket.m index ad1533b..85ad610 100644 --- a/src/SSLSocket.m +++ b/src/SSLSocket.m @@ -342,7 +342,8 @@ locking_callback(int mode, int n, const char *file, int line) return 0; @throw [OFReadFailedException exceptionWithObject: self - requestedLength: length]; + requestedLength: length + errNo: 0]; } if (ret == 0) @@ -367,7 +368,8 @@ locking_callback(int mode, int n, const char *file, int line) if (SSL_write(_SSL, buffer, (int)length) < length) @throw [OFWriteFailedException exceptionWithObject: self - requestedLength: length]; + requestedLength: length + errNo: 0]; } - (bool)hasDataInReadBuffer