From 76a7f400c7ed46beb1772af099e660152fb5be78 Mon Sep 17 00:00:00 2001 From: otto Date: Wed, 14 Dec 2022 15:44:13 +0000 Subject: [PATCH] Continue loop if no match found; avoids an OOB write. ok florian@ tb@ --- usr.sbin/acme-client/revokeproc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/acme-client/revokeproc.c b/usr.sbin/acme-client/revokeproc.c index 3eb0bd4cafa..fee2d56a162 100644 --- a/usr.sbin/acme-client/revokeproc.c +++ b/usr.sbin/acme-client/revokeproc.c @@ -1,4 +1,4 @@ -/* $Id: revokeproc.c,v 1.19 2021/11/22 08:26:08 tb Exp $ */ +/* $Id: revokeproc.c,v 1.20 2022/12/14 15:44:13 otto Exp $ */ /* * Copyright (c) 2016 Kristaps Dzonsons * @@ -239,6 +239,7 @@ revokeproc(int fd, const char *certfile, int force, goto out; } force = 2; + continue; } if (found[j]++) { if (revocate) { -- 2.20.1