diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2020-09-14 09:43:34 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2020-09-14 09:43:34 +0000 |
commit | aa87344485ebb178aea094b87b2e2c167461608c (patch) | |
tree | 26ec3a82f598c2cfe547448939b379d8ed8eebbc | |
parent | 34027720893775c8b10b9d08339fcf1626af1dee (diff) |
remove unneeded variable "type".
Yak for my shaving pleasure found by llvm static analyzer
ok tb@
-rw-r--r-- | lib/libcrypto/x509/x509_constraints.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/libcrypto/x509/x509_constraints.c b/lib/libcrypto/x509/x509_constraints.c index 1b351c958e5..d89ffd650d6 100644 --- a/lib/libcrypto/x509/x509_constraints.c +++ b/lib/libcrypto/x509/x509_constraints.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_constraints.c,v 1.2 2020/09/14 09:29:23 beck Exp $ */ +/* $OpenBSD: x509_constraints.c,v 1.3 2020/09/14 09:43:33 beck Exp $ */ /* * Copyright (c) 2020 Bob Beck <beck@openbsd.org> * @@ -947,7 +947,6 @@ x509_constraints_extract_constraints(X509 *cert, struct x509_constraints_name *vname; NAME_CONSTRAINTS *nc = cert->nc; GENERAL_SUBTREE *subtree; - int type; int i; if (nc == NULL) @@ -964,8 +963,8 @@ x509_constraints_extract_constraints(X509 *cert, *error = X509_V_ERR_OUT_OF_MEM; return 0; } - if ((type = x509_constraints_validate(subtree->base, - vname, error)) == 0) { + if (x509_constraints_validate(subtree->base, vname, error) == + 0) { x509_constraints_name_free(vname); return 0; } @@ -990,8 +989,8 @@ x509_constraints_extract_constraints(X509 *cert, *error = X509_V_ERR_OUT_OF_MEM; return 0; } - if ((type = x509_constraints_validate(subtree->base, - vname, error)) == 0) { + if (x509_constraints_validate(subtree->base, vname, error) == + 0) { x509_constraints_name_free(vname); return 0; } |