diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2023-03-12 11:46:36 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2023-03-12 11:46:36 +0000 |
commit | dad371b7f3bbd1e7ce1d92349b90a213b12cfd21 (patch) | |
tree | 4c9b5a09e4c753ec28ecf61e920d5fe83fdd4ca4 /usr.sbin/rpki-client | |
parent | c361239e7bf61af241c8d864b441a8d3c0a81463 (diff) |
Initialize the local signtime variable in the individual *_parse()
functions
ok job
Diffstat (limited to 'usr.sbin/rpki-client')
-rw-r--r-- | usr.sbin/rpki-client/aspa.c | 4 | ||||
-rw-r--r-- | usr.sbin/rpki-client/gbr.c | 4 | ||||
-rw-r--r-- | usr.sbin/rpki-client/mft.c | 4 | ||||
-rw-r--r-- | usr.sbin/rpki-client/roa.c | 4 | ||||
-rw-r--r-- | usr.sbin/rpki-client/rsc.c | 4 | ||||
-rw-r--r-- | usr.sbin/rpki-client/tak.c | 4 |
6 files changed, 12 insertions, 12 deletions
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 <job@fastly.com> * Copyright (c) 2022 Theo Buehler <tb@openbsd.org> @@ -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 <claudio@openbsd.org> * @@ -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 <tb@openbsd.org> * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> @@ -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 <tb@openbsd.org> * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> @@ -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 <tb@openbsd.org> * Copyright (c) 2022 Job Snijders <job@fastly.com> @@ -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 <job@fastly.com> * Copyright (c) 2022 Theo Buehler <tb@openbsd.org> @@ -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)); |