Fix forgotten change.
This commit is contained in:
parent
527e49fc21
commit
0185f9bc7b
1 changed files with 3 additions and 7 deletions
|
@ -219,11 +219,9 @@ static SSL_CTX *ctx;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (size_t)_writeNBytes: (size_t)length
|
- (void)_writeNBytes: (size_t)length
|
||||||
fromBuffer: (const char*)buffer
|
fromBuffer: (const char*)buffer
|
||||||
{
|
{
|
||||||
ssize_t ret;
|
|
||||||
|
|
||||||
if (length > INT_MAX)
|
if (length > INT_MAX)
|
||||||
@throw [OFOutOfRangeException newWithClass: isa];
|
@throw [OFOutOfRangeException newWithClass: isa];
|
||||||
|
|
||||||
|
@ -247,12 +245,10 @@ static SSL_CTX *ctx;
|
||||||
@throw e;
|
@throw e;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((ret = SSL_write(ssl, buffer, (int)length)) < 1)
|
if (SSL_write(ssl, buffer, (int)length) < 1)
|
||||||
@throw [OFWriteFailedException newWithClass: isa
|
@throw [OFWriteFailedException newWithClass: isa
|
||||||
stream: self
|
stream: self
|
||||||
requestedLength: length];
|
requestedLength: length];
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (size_t)pendingBytes
|
- (size_t)pendingBytes
|
||||||
|
|
Reference in a new issue