* Certificate: Fix the (apparently unused) readBytes(byte[], int) method
for a null certificate - http://zzz.i2p/topics/388 - thanks HungryHobo
This commit is contained in:
@ -113,7 +113,7 @@ public class Certificate extends DataStructureImpl {
|
||||
|
||||
public int readBytes(byte source[], int offset) throws DataFormatException {
|
||||
if (source == null) throw new DataFormatException("Cert is null");
|
||||
if (source.length <= offset + 3)
|
||||
if (source.length < offset + 3)
|
||||
throw new DataFormatException("Cert is too small [" + source.length + " off=" + offset + "]");
|
||||
|
||||
int cur = offset;
|
||||
|
Reference in New Issue
Block a user