* 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:
zzz
2009-10-22 22:20:50 +00:00
parent 77d45e7a3a
commit 4863ef3360

View File

@ -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;