From: tb Date: Sun, 9 May 2021 11:25:32 +0000 (+0000) Subject: Garbage collect sz in mft_parse_filehash() which has been unused X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b1cb285cc133a30412dd7d72e0396ccfcfa1c7c7;p=openbsd Garbage collect sz in mft_parse_filehash() which has been unused since mft.c r1.20. --- diff --git a/usr.sbin/rpki-client/mft.c b/usr.sbin/rpki-client/mft.c index cd815e9fe8d..757e9594393 100644 --- a/usr.sbin/rpki-client/mft.c +++ b/usr.sbin/rpki-client/mft.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mft.c,v 1.32 2021/03/29 06:50:44 tb Exp $ */ +/* $OpenBSD: mft.c,v 1.33 2021/05/09 11:25:32 tb Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons * @@ -129,7 +129,7 @@ mft_parse_filehash(struct parse *p, const ASN1_OCTET_STRING *os) const ASN1_TYPE *file, *hash; char *fn = NULL; const unsigned char *d = os->data; - size_t dsz = os->length, sz; + size_t dsz = os->length; int rc = 0; struct mftfile *fent; @@ -169,7 +169,7 @@ mft_parse_filehash(struct parse *p, const ASN1_OCTET_STRING *os) warnx("%s: path components disallowed in filename: %s", p->fn, fn); goto out; - } else if ((sz = strlen(fn)) <= 4) { + } else if (strlen(fn) <= 4) { warnx("%s: filename must be large enough for suffix part: %s", p->fn, fn); goto out;