summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2013-01-18 15:32:03 +1100
committerDamien Miller <djm@mindrot.org>2013-01-18 15:32:03 +1100
commit13f5f768bc4861bff58074717fc19764ee347ac9 (patch)
tree2d0a4afa3d8843cd1b417388139fc8cb59992fa4
parentebafebda8570b2b013327cdc6627f9c5fb9733c1 (diff)
- djm@cvs.openbsd.org 2013/01/18 03:00:32
[krl.c] fix KRL generation bug for list sections
-rw-r--r--ChangeLog4
-rw-r--r--krl.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index a45d24b29..6be8cd468 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,10 +8,12 @@
8 a single bit of incremental cost to revoke a certificate by serial number. 8 a single bit of incremental cost to revoke a certificate by serial number.
9 KRLs are loaded via the existing RevokedKeys sshd_config option. 9 KRLs are loaded via the existing RevokedKeys sshd_config option.
10 feedback and ok markus@ 10 feedback and ok markus@
11 - OpenBSD CVS Sync
12 - djm@cvs.openbsd.org 2013/01/18 00:45:29 11 - djm@cvs.openbsd.org 2013/01/18 00:45:29
13 [regress/Makefile regress/cert-userkey.sh regress/krl.sh] 12 [regress/Makefile regress/cert-userkey.sh regress/krl.sh]
14 Tests for Key Revocation Lists (KRLs) 13 Tests for Key Revocation Lists (KRLs)
14 - djm@cvs.openbsd.org 2013/01/18 03:00:32
15 [krl.c]
16 fix KRL generation bug for list sections
15 17
1620130117 1820130117
17 - (djm) [regress/cipher-speed.sh regress/integrity.sh regress/try-ciphers.sh] 19 - (djm) [regress/cipher-speed.sh regress/integrity.sh regress/try-ciphers.sh]
diff --git a/krl.c b/krl.c
index 485057029..ca2010a77 100644
--- a/krl.c
+++ b/krl.c
@@ -14,7 +14,7 @@
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */ 15 */
16 16
17/* $OpenBSD: krl.c,v 1.2 2013/01/18 00:24:58 djm Exp $ */ 17/* $OpenBSD: krl.c,v 1.3 2013/01/18 03:00:32 djm Exp $ */
18 18
19#include "includes.h" 19#include "includes.h"
20 20
@@ -595,7 +595,7 @@ revoked_certs_generate(struct revoked_certs *rc, Buffer *buf)
595 /* Perform section-specific processing */ 595 /* Perform section-specific processing */
596 switch (state) { 596 switch (state) {
597 case KRL_SECTION_CERT_SERIAL_LIST: 597 case KRL_SECTION_CERT_SERIAL_LIST:
598 for (i = rs->lo; i < contig; i++) 598 for (i = 0; i < contig; i++)
599 buffer_put_int64(&sect, rs->lo + i); 599 buffer_put_int64(&sect, rs->lo + i);
600 break; 600 break;
601 case KRL_SECTION_CERT_SERIAL_RANGE: 601 case KRL_SECTION_CERT_SERIAL_RANGE: