mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 10:52:57 +00:00
* Certificate: Fix fatal null cert error
This commit is contained in:
1 parent
82e344055b
commit
ff0c168d65
1 file changed
+5
-3
@@ -111,8 +111,10 @@ public class Certificate extends DataStructureImpl {
|
||||
DataHelper.writeLong(out, 2, 0L);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return the written length (NOT the new offset)
|
||||
*/
|
||||
public int writeBytes(byte target[], int offset) {
|
||||
int cur = offset;
|
||||
DataHelper.toLong(target, cur, 1, _type);
|
||||
@@ -242,7 +244,7 @@ public class Certificate extends DataStructureImpl {
|
||||
@Override
|
||||
public int writeBytes(byte target[], int offset) {
|
||||
System.arraycopy(NULL_DATA, 0, target, offset, NULL_LENGTH);
|
||||
return offset + NULL_LENGTH;
|
||||
return NULL_LENGTH;
|
||||
}
|
||||
|
||||
/** @throws RuntimeException always */
|
||||
|
||||
Reference in new issue
Block a user