diff --git a/src/XrdCl/XrdClAsyncRawReader.hh b/src/XrdCl/XrdClAsyncRawReader.hh index 8bdfe7aea83..bfbe75df367 100644 --- a/src/XrdCl/XrdClAsyncRawReader.hh +++ b/src/XrdCl/XrdClAsyncRawReader.hh @@ -113,7 +113,7 @@ namespace XrdCl //-------------------------------------------------------------- // We run out of space, the server has send too much data //-------------------------------------------------------------- - if( choff == ( *chunks )[chidx].length ) + if( chidx >= chunks->size() ) { readstage = ReadDiscard; continue;