From f43eea18dbd51469620842fa155c86cd870fcac8 Mon Sep 17 00:00:00 2001 From: tb Date: Fri, 14 Nov 2025 08:28:03 +0000 Subject: [PATCH] rpki-client: use less unusual idiom for calloc() looks good to claudio --- usr.sbin/rpki-client/aspa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/rpki-client/aspa.c b/usr.sbin/rpki-client/aspa.c index aefa5236b38..56a45c2e3b1 100644 --- a/usr.sbin/rpki-client/aspa.c +++ b/usr.sbin/rpki-client/aspa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aspa.c,v 1.39 2025/08/25 04:13:56 tb Exp $ */ +/* $OpenBSD: aspa.c,v 1.40 2025/11/14 08:28:03 tb Exp $ */ /* * Copyright (c) 2022 Job Snijders * Copyright (c) 2022 Theo Buehler @@ -70,7 +70,7 @@ aspa_parse_providers(const char *fn, struct aspa *aspa, return 0; } - aspa->providers = calloc(providersz, sizeof(provider)); + aspa->providers = calloc(providersz, sizeof(aspa->providers[0])); if (aspa->providers == NULL) err(1, NULL);