summaryrefslogtreecommitdiffstats
path: root/usr.sbin/acme-client
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2019-08-11 19:44:25 +0000
committerflorian <florian@openbsd.org>2019-08-11 19:44:25 +0000
commit4e6b438a7e451b5576169c8c5c39abcb26e66aed (patch)
tree13e9984155947212e7df27fb5c7406dd72af1a1f /usr.sbin/acme-client
parentReplace some err(1, NULL) with err(1, "malloc"). (diff)
downloadwireguard-openbsd-4e6b438a7e451b5576169c8c5c39abcb26e66aed.tar.xz
wireguard-openbsd-4e6b438a7e451b5576169c8c5c39abcb26e66aed.zip
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);