RLP critical bug

This commit is contained in:
romanman 2014-06-24 12:03:10 +01:00
parent 7db6b5415b
commit d2a3259fdf
1 changed files with 1 additions and 1 deletions

View File

@ -828,7 +828,7 @@ public class RLP {
if ( srcData == null ||
(srcData.length == 1 && srcData[0] == 0) ) {
return new byte[]{(byte) 0x80};
} if (srcData.length == 1 && srcData[0] < 0x80) {
} if (srcData.length == 1 && (srcData[0] & 0xFF) < 0x80) {
return srcData;