Correctly check return value of SSL_write.
This commit is contained in:
parent
0185f9bc7b
commit
59a56bca2a
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ static SSL_CTX *ctx;
|
|||
@throw e;
|
||||
}
|
||||
|
||||
if (SSL_write(ssl, buffer, (int)length) < 1)
|
||||
if (SSL_write(ssl, buffer, (int)length) < length)
|
||||
@throw [OFWriteFailedException newWithClass: isa
|
||||
stream: self
|
||||
requestedLength: length];
|
||||
|
|
Reference in a new issue