~graywolf/acme-client-portable

0f2d1975948f747bfcd5cfefc024a10233d24027 — Wolf a year ago e37d59b
Update from openbsd (2020-06-20 20:24:31 UTC)
2 files changed, 25 insertions(+), 25 deletions(-)

M CVS/Entries
M json.c
M CVS/Entries => CVS/Entries +21 -21
@@ 2,25 2,25 @@
/jsmn.c/1.1/Mon Jul  8 18:00:44 2019//
/jsmn.h/1.1/Mon Jul  8 18:00:44 2019//
/key.h/1.1/Mon Jul  8 18:00:44 2019//
/Makefile/1.9/Mon May 18 08:53:14 2020//
/acctproc.c/1.20/Mon May 18 08:53:14 2020//
/acme-client.1/1.34/Mon May 18 08:53:15 2020//
/acme-client.conf.5/1.25/Mon May 18 08:53:15 2020//
/base64.c/1.9/Mon May 18 08:53:14 2020//
/certproc.c/1.12/Mon May 18 08:53:14 2020//
/chngproc.c/1.15/Mon May 18 08:53:14 2020//
/dbg.c/1.4/Mon May 18 08:53:14 2020//
/dnsproc.c/1.11/Mon May 18 08:53:15 2020//
/extern.h/1.18/Mon May 18 08:53:15 2020//
/fileproc.c/1.16/Mon May 18 08:53:14 2020//
/http.c/1.29/Mon May 18 08:53:14 2020//
/json.c/1.17/Mon May 18 08:53:15 2020//
/key.c/1.2/Mon May 18 08:53:14 2020//
/keyproc.c/1.15/Mon May 18 08:53:14 2020//
/main.c/1.54/Mon May 18 08:53:16 2020//
/netproc.c/1.26/Mon May 18 08:53:16 2020//
/parse.h/1.14/Mon May 18 08:53:16 2020//
/parse.y/1.41/Mon May 18 08:53:16 2020//
/revokeproc.c/1.15/Mon May 18 08:53:14 2020//
/util.c/1.12/Mon May 18 08:53:14 2020//
/Makefile/1.9/Sat Jun 20 20:24:29 2020//
/acctproc.c/1.20/Sat Jun 20 20:24:29 2020//
/acme-client.1/1.34/Mon May 18 09:16:56 2020//
/acme-client.conf.5/1.25/Mon May 18 09:16:56 2020//
/base64.c/1.9/Sat Jun 20 20:24:29 2020//
/certproc.c/1.12/Sat Jun 20 20:24:29 2020//
/chngproc.c/1.15/Sat Jun 20 20:24:29 2020//
/dbg.c/1.4/Sat Jun 20 20:24:29 2020//
/dnsproc.c/1.11/Sat Jun 20 20:24:29 2020//
/extern.h/1.18/Sat Jun 20 20:24:29 2020//
/fileproc.c/1.16/Sat Jun 20 20:24:29 2020//
/http.c/1.29/Sat Jun 20 20:24:29 2020//
/json.c/1.19/Sat Jun 20 20:24:30 2020//
/key.c/1.2/Sat Jun 20 20:24:29 2020//
/keyproc.c/1.15/Sat Jun 20 20:24:29 2020//
/main.c/1.54/Sat Jun 20 20:24:29 2020//
/netproc.c/1.26/Sat Jun 20 20:24:29 2020//
/parse.h/1.14/Sat Jun 20 20:24:29 2020//
/parse.y/1.41/Sat Jun 20 20:24:29 2020//
/revokeproc.c/1.15/Sat Jun 20 20:24:29 2020//
/util.c/1.12/Sat Jun 20 20:24:29 2020//
D

M json.c => json.c +4 -4
@@ 1,4 1,4 @@
/*	$Id: json.c,v 1.17 2020/05/10 17:34:07 florian Exp $ */
/*	$Id: json.c,v 1.19 2020/06/07 13:29:52 florian Exp $ */
/*
 * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
 *


@@ 462,7 462,7 @@ json_parse_order(struct jsmnn *n, struct order *order)
		goto err;

	if (array->fields > 0) {
		order->auths = calloc(sizeof(*order->auths), array->fields);
		order->auths = calloc(array->fields, sizeof(*order->auths));
		if (order->auths == NULL) {
			warn("malloc");
			goto err;


@@ 481,7 481,7 @@ json_parse_order(struct jsmnn *n, struct order *order)
	}
	return 1;
err:
	json_free_order(order);	
	json_free_order(order);
	return 0;
}



@@ 507,7 507,7 @@ json_free_order(struct order *order)
	for(i = 0; i < order->authsz; i++)
		free(order->auths[i]);
	free(order->auths);
	

	order->finalize = NULL;
	order->auths = NULL;
	order->authsz = 0;