I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 4863ef33 authored by zzz's avatar zzz
Browse files

* Certificate: Fix the (apparently unused) readBytes(byte[], int) method

      for a null certificate - http://zzz.i2p/topics/388 - thanks HungryHobo
parent 77d45e7a
No related branches found
No related tags found
No related merge requests found
...@@ -113,7 +113,7 @@ public class Certificate extends DataStructureImpl { ...@@ -113,7 +113,7 @@ public class Certificate extends DataStructureImpl {
public int readBytes(byte source[], int offset) throws DataFormatException { public int readBytes(byte source[], int offset) throws DataFormatException {
if (source == null) throw new DataFormatException("Cert is null"); 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 + "]"); throw new DataFormatException("Cert is too small [" + source.length + " off=" + offset + "]");
int cur = offset; int cur = offset;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment