summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2013-01-18 03:00:32 +0000
committerdjm <djm@openbsd.org>2013-01-18 03:00:32 +0000
commita2f3613ce3ec47574bc9cb0d22f87bf479f107dc (patch)
tree6a8d554bfd66058b102f6b23f1b3e1a2a5b389b3
parentRather than having two grids for each pane, one for ASCII and one for (diff)
downloadwireguard-openbsd-a2f3613ce3ec47574bc9cb0d22f87bf479f107dc.tar.xz
wireguard-openbsd-a2f3613ce3ec47574bc9cb0d22f87bf479f107dc.zip
fix KRL generation bug for list sections
-rw-r--r--usr.bin/ssh/krl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/krl.c b/usr.bin/ssh/krl.c
index 5ad550eb66e..945e71ab07e 100644
--- a/usr.bin/ssh/krl.c
+++ b/usr.bin/ssh/krl.c
@@ -14,7 +14,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $OpenBSD: krl.c,v 1.2 2013/01/18 00:24:58 djm Exp $ */
+/* $OpenBSD: krl.c,v 1.3 2013/01/18 03:00:32 djm Exp $ */
#include <sys/types.h>
#include <sys/param.h>
@@ -593,7 +593,7 @@ revoked_certs_generate(struct revoked_certs *rc, Buffer *buf)
/* Perform section-specific processing */
switch (state) {
case KRL_SECTION_CERT_SERIAL_LIST:
- for (i = rs->lo; i < contig; i++)
+ for (i = 0; i < contig; i++)
buffer_put_int64(&sect, rs->lo + i);
break;
case KRL_SECTION_CERT_SERIAL_RANGE: