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;
|
@throw e;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SSL_write(ssl, buffer, (int)length) < 1)
|
if (SSL_write(ssl, buffer, (int)length) < length)
|
||||||
@throw [OFWriteFailedException newWithClass: isa
|
@throw [OFWriteFailedException newWithClass: isa
|
||||||
stream: self
|
stream: self
|
||||||
requestedLength: length];
|
requestedLength: length];
|
||||||
|
|
Reference in a new issue