summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2015-07-19 02:43:25 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2015-07-19 02:43:25 +0000
commit0b7e64dd6c4ddf6b50927fe28f541b565d435b4a (patch)
tree255a09c7400223661c796106e4a32dc50b883a09
parent5196cb14910559dc2e1c112392cae3f5bb66992b (diff)
Put explicit braces around assignment used in a conditional.
ok bcook@ doug@
-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);