summaryrefslogtreecommitdiff
path: root/usr.sbin/acme-client
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2019-08-11 19:44:26 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2019-08-11 19:44:26 +0000
commitc5719ceeb9ce610e813d423f9e89425ac7518f18 (patch)
tree2ab9c5647a2ce9324fe6f205a8906073de71d61e /usr.sbin/acme-client
parent85984500d04a3504bbf3167e776d04fa51d91ed9 (diff)
In let's encrypt v1 we had to track a challenge for every domain in
the certificate we were requesting. This is no longer true in v2 and we have to free the amount of challenges the server told us to fullfill. OK benno
Diffstat (limited to 'usr.sbin/acme-client')
-rw-r--r--usr.sbin/acme-client/netproc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/acme-client/netproc.c b/usr.sbin/acme-client/netproc.c
index 21316cc21db..79c26ef4c67 100644
--- a/usr.sbin/acme-client/netproc.c
+++ b/usr.sbin/acme-client/netproc.c
@@ -1,4 +1,4 @@
-/* $Id: netproc.c,v 1.24 2019/06/08 10:38:03 florian Exp $ */
+/* $Id: netproc.c,v 1.25 2019/08/11 19:44:25 florian Exp $ */
/*
* Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -886,7 +886,7 @@ out:
free(c.kid);
free(c.buf.buf);
if (chngs != NULL)
- for (i = 0; i < altsz; i++)
+ for (i = 0; i < order.authsz; i++)
json_free_challenge(&chngs[i]);
free(chngs);
json_free_capaths(&paths);