From 4863ef3360cc660c4ca1266c331208d5849f09f5 Mon Sep 17 00:00:00 2001
From: zzz <zzz@mail.i2p>
Date: Thu, 22 Oct 2009 22:20:50 +0000
Subject: [PATCH]     * Certificate: Fix the (apparently unused)
 readBytes(byte[], int) method       for a null certificate -
 http://zzz.i2p/topics/388 - thanks HungryHobo

---
 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 9dcc431e52..0fe61e5c02 100644
--- a/core/java/src/net/i2p/data/Certificate.java
+++ b/core/java/src/net/i2p/data/Certificate.java
@@ -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;
-- 
GitLab