From 2f199ccbed3e30323138538315273cc845854cb9 Mon Sep 17 00:00:00 2001 From: miod <> Date: Sun, 19 Jul 2015 02:43:24 +0000 Subject: Put explicit braces around assignment used in a conditional. ok bcook@ doug@ --- src/lib/libcrypto/ts/ts_rsp_verify.c | 4 ++-- src/lib/libssl/src/crypto/ts/ts_rsp_verify.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libcrypto/ts/ts_rsp_verify.c b/src/lib/libcrypto/ts/ts_rsp_verify.c index 56397eeec3..25aa31ee4d 100644 --- a/src/lib/libcrypto/ts/ts_rsp_verify.c +++ b/src/lib/libcrypto/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); diff --git a/src/lib/libssl/src/crypto/ts/ts_rsp_verify.c b/src/lib/libssl/src/crypto/ts/ts_rsp_verify.c index 56397eeec3..25aa31ee4d 100644 --- a/src/lib/libssl/src/crypto/ts/ts_rsp_verify.c +++ b/src/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); -- cgit v1.2.3-55-g6feb