From: tb Date: Sun, 12 Mar 2023 11:46:35 +0000 (+0000) Subject: Initialize the local signtime variable in the individual *_parse() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=beccb3784784a617b377ecb8c8e84326efbf01e4;p=openbsd Initialize the local signtime variable in the individual *_parse() functions ok job --- diff --git a/usr.sbin/rpki-client/aspa.c b/usr.sbin/rpki-client/aspa.c index 2a17f2280fa..bed7fe2d99d 100644 --- a/usr.sbin/rpki-client/aspa.c +++ b/usr.sbin/rpki-client/aspa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aspa.c,v 1.14 2023/03/10 12:44:56 job Exp $ */ +/* $OpenBSD: aspa.c,v 1.15 2023/03/12 11:46:35 tb Exp $ */ /* * Copyright (c) 2022 Job Snijders * Copyright (c) 2022 Theo Buehler @@ -189,7 +189,7 @@ aspa_parse(X509 **x509, const char *fn, const unsigned char *der, size_t len) size_t cmsz; unsigned char *cms; struct cert *cert = NULL; - time_t signtime; + time_t signtime = 0; int rc = 0; memset(&p, 0, sizeof(struct parse)); diff --git a/usr.sbin/rpki-client/gbr.c b/usr.sbin/rpki-client/gbr.c index 4ba4ff8851a..3d27224cbb5 100644 --- a/usr.sbin/rpki-client/gbr.c +++ b/usr.sbin/rpki-client/gbr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gbr.c,v 1.25 2023/03/10 12:44:56 job Exp $ */ +/* $OpenBSD: gbr.c,v 1.26 2023/03/12 11:46:35 tb Exp $ */ /* * Copyright (c) 2020 Claudio Jeker * @@ -45,7 +45,7 @@ gbr_parse(X509 **x509, const char *fn, const unsigned char *der, size_t len) struct parse p; size_t cmsz; unsigned char *cms; - time_t signtime; + time_t signtime = 0; memset(&p, 0, sizeof(struct parse)); p.fn = fn; diff --git a/usr.sbin/rpki-client/mft.c b/usr.sbin/rpki-client/mft.c index 0e2b207bf34..2345d0fc586 100644 --- a/usr.sbin/rpki-client/mft.c +++ b/usr.sbin/rpki-client/mft.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mft.c,v 1.84 2023/03/09 18:53:24 tb Exp $ */ +/* $OpenBSD: mft.c,v 1.85 2023/03/12 11:46:35 tb Exp $ */ /* * Copyright (c) 2022 Theo Buehler * Copyright (c) 2019 Kristaps Dzonsons @@ -353,7 +353,7 @@ mft_parse(X509 **x509, const char *fn, const unsigned char *der, size_t len) size_t cmsz; unsigned char *cms; char *crldp = NULL, *crlfile; - time_t signtime; + time_t signtime = 0; memset(&p, 0, sizeof(struct parse)); p.fn = fn; diff --git a/usr.sbin/rpki-client/roa.c b/usr.sbin/rpki-client/roa.c index d4564ab9918..0cc1143ad5b 100644 --- a/usr.sbin/rpki-client/roa.c +++ b/usr.sbin/rpki-client/roa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: roa.c,v 1.63 2023/03/10 12:44:56 job Exp $ */ +/* $OpenBSD: roa.c,v 1.64 2023/03/12 11:46:35 tb Exp $ */ /* * Copyright (c) 2022 Theo Buehler * Copyright (c) 2019 Kristaps Dzonsons @@ -212,7 +212,7 @@ roa_parse(X509 **x509, const char *fn, const unsigned char *der, size_t len) size_t cmsz; unsigned char *cms; struct cert *cert = NULL; - time_t signtime; + time_t signtime = 0; int rc = 0; memset(&p, 0, sizeof(struct parse)); diff --git a/usr.sbin/rpki-client/rsc.c b/usr.sbin/rpki-client/rsc.c index a21ff0d6b25..84efa8c87ea 100644 --- a/usr.sbin/rpki-client/rsc.c +++ b/usr.sbin/rpki-client/rsc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsc.c,v 1.23 2023/03/10 12:44:56 job Exp $ */ +/* $OpenBSD: rsc.c,v 1.24 2023/03/12 11:46:35 tb Exp $ */ /* * Copyright (c) 2022 Theo Buehler * Copyright (c) 2022 Job Snijders @@ -378,7 +378,7 @@ rsc_parse(X509 **x509, const char *fn, const unsigned char *der, size_t len) unsigned char *cms; size_t cmsz; struct cert *cert = NULL; - time_t signtime; + time_t signtime = 0; int rc = 0; memset(&p, 0, sizeof(struct parse)); diff --git a/usr.sbin/rpki-client/tak.c b/usr.sbin/rpki-client/tak.c index 961b49fea32..85613ed7de1 100644 --- a/usr.sbin/rpki-client/tak.c +++ b/usr.sbin/rpki-client/tak.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tak.c,v 1.7 2023/03/10 12:44:56 job Exp $ */ +/* $OpenBSD: tak.c,v 1.8 2023/03/12 11:46:35 tb Exp $ */ /* * Copyright (c) 2022 Job Snijders * Copyright (c) 2022 Theo Buehler @@ -230,7 +230,7 @@ tak_parse(X509 **x509, const char *fn, const unsigned char *der, size_t len) struct parse p; unsigned char *cms; size_t cmsz; - time_t signtime; + time_t signtime = 0; int rc = 0; memset(&p, 0, sizeof(struct parse));