summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2015-07-19 02:43:24 +0000
committermiod <miod@openbsd.org>2015-07-19 02:43:24 +0000
commit9c20dc82393e23680d71a49f95e26a15f3841379 (patch)
treee8ec2756c1fcc46900175beb95172173ecc55ed7 /lib/libssl/src
parentRename the tpspmic driver so it does not contain numbers. OK jsg@ (diff)
downloadwireguard-openbsd-9c20dc82393e23680d71a49f95e26a15f3841379.tar.xz
wireguard-openbsd-9c20dc82393e23680d71a49f95e26a15f3841379.zip
Put explicit braces around assignment used in a conditional.
ok bcook@ doug@
Diffstat (limited to 'lib/libssl/src')
-rw-r--r--lib/libssl/src/crypto/ts/ts_rsp_verify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/src/crypto/ts/ts_rsp_verify.c b/lib/libssl/src/crypto/ts/ts_rsp_verify.c
index 56397eeec37..25aa31ee4df 100644
--- a/lib/libssl/src/crypto/ts/ts_rsp_verify.c
+++ b/lib/libssl/src/crypto/ts/ts_rsp_verify.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ts_rsp_verify.c,v 1.13 2015/07/15 16:45:24 miod Exp $ */
+/* $OpenBSD: ts_rsp_verify.c,v 1.14 2015/07/19 02:43:24 miod Exp $ */
/* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL
* project 2002.
*/
@@ -710,7 +710,7 @@ TS_check_signer_name(GENERAL_NAME *tsa_name, X509 *signer)
gen_names = X509_get_ext_d2i(signer, NID_subject_alt_name,
NULL, &idx);
while (gen_names != NULL &&
- !(found = TS_find_name(gen_names, tsa_name) >= 0)) {
+ !(found = (TS_find_name(gen_names, tsa_name) >= 0))) {
/* Get the next subject alternative name,
although there should be no more than one. */
GENERAL_NAMES_free(gen_names);