summaryrefslogtreecommitdiff
path: root/io/source/connector/ctr_socket.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'io/source/connector/ctr_socket.cxx')
-rw-r--r--io/source/connector/ctr_socket.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/io/source/connector/ctr_socket.cxx b/io/source/connector/ctr_socket.cxx
index 787a470d14b1..2c0d3f691b2f 100644
--- a/io/source/connector/ctr_socket.cxx
+++ b/io/source/connector/ctr_socket.cxx
@@ -123,7 +123,7 @@ namespace stoc_connector {
{
notifyListeners(this, &_started, callStarted);
- if( aReadBytes.getLength() < nBytesToRead )
+ if( aReadBytes.getLength() != nBytesToRead )
{
aReadBytes.realloc( nBytesToRead );
}
@@ -143,10 +143,7 @@ namespace stoc_connector {
throw ioException;
}
- if( i < aReadBytes.getLength() )
- {
- aReadBytes.realloc( i );
- }
+
return i;
}
else