File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/software/amazon/encryption/s3/internal Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -73,8 +73,8 @@ public void onNext(ByteBuffer byteBuffer) {
7373 } else {
7474 // Once all content has been read, call onComplete.
7575 // This class can identify when all content has been read because the amount of data read so far
76- // plus the tag length will equal the content length.
77- if (contentRead .get () + tagLength = = contentLength ) {
76+ // plus the tag length exceeds the content length.
77+ if (contentRead .get () + tagLength > = contentLength ) {
7878 // All content has been read, so complete the stream.
7979 // The next onNext call MUST include all bytes, including the result of cipher.doFinal().
8080 // Sending any additional onNext calls violates the Reactive Streams specification
You can’t perform that action at this time.
0 commit comments