From 2155347e4f27d34f268bc9fc7d3527316fd0616d Mon Sep 17 00:00:00 2001 From: zzz <zzz@mail.i2p> Date: Sun, 13 Dec 2015 16:41:35 +0000 Subject: [PATCH] another writeLong --- core/java/src/net/i2p/data/Certificate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/src/net/i2p/data/Certificate.java b/core/java/src/net/i2p/data/Certificate.java index aefc34ce61..200423d8bf 100644 --- a/core/java/src/net/i2p/data/Certificate.java +++ b/core/java/src/net/i2p/data/Certificate.java @@ -176,7 +176,7 @@ public class Certificate extends DataStructureImpl { if (_type < 0) throw new DataFormatException("Invalid certificate type: " + _type); //if ((_type != 0) && (_payload == null)) throw new DataFormatException("Payload is required for non null type"); - DataHelper.writeLong(out, 1, _type); + out.write((byte) _type); if (_payload != null) { DataHelper.writeLong(out, 2, _payload.length); out.write(_payload); -- GitLab