RLP critical bug
This commit is contained in:
parent
7db6b5415b
commit
d2a3259fdf
|
@ -828,7 +828,7 @@ public class RLP {
|
||||||
if ( srcData == null ||
|
if ( srcData == null ||
|
||||||
(srcData.length == 1 && srcData[0] == 0) ) {
|
(srcData.length == 1 && srcData[0] == 0) ) {
|
||||||
return new byte[]{(byte) 0x80};
|
return new byte[]{(byte) 0x80};
|
||||||
} if (srcData.length == 1 && srcData[0] < 0x80) {
|
} if (srcData.length == 1 && (srcData[0] & 0xFF) < 0x80) {
|
||||||
|
|
||||||
return srcData;
|
return srcData;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue