summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/ts/ts_rsp_verify.c4
-rw-r--r--src/lib/libssl/src/crypto/ts/ts_rsp_verify.c4
2 files changed, 4 insertions, 4 deletions
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 @@
1/* $OpenBSD: ts_rsp_verify.c,v 1.13 2015/07/15 16:45:24 miod Exp $ */ 1/* $OpenBSD: ts_rsp_verify.c,v 1.14 2015/07/19 02:43:24 miod Exp $ */
2/* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL 2/* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL
3 * project 2002. 3 * project 2002.
4 */ 4 */
@@ -710,7 +710,7 @@ TS_check_signer_name(GENERAL_NAME *tsa_name, X509 *signer)
710 gen_names = X509_get_ext_d2i(signer, NID_subject_alt_name, 710 gen_names = X509_get_ext_d2i(signer, NID_subject_alt_name,
711 NULL, &idx); 711 NULL, &idx);
712 while (gen_names != NULL && 712 while (gen_names != NULL &&
713 !(found = TS_find_name(gen_names, tsa_name) >= 0)) { 713 !(found = (TS_find_name(gen_names, tsa_name) >= 0))) {
714 /* Get the next subject alternative name, 714 /* Get the next subject alternative name,
715 although there should be no more than one. */ 715 although there should be no more than one. */
716 GENERAL_NAMES_free(gen_names); 716 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 @@
1/* $OpenBSD: ts_rsp_verify.c,v 1.13 2015/07/15 16:45:24 miod Exp $ */ 1/* $OpenBSD: ts_rsp_verify.c,v 1.14 2015/07/19 02:43:24 miod Exp $ */
2/* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL 2/* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL
3 * project 2002. 3 * project 2002.
4 */ 4 */
@@ -710,7 +710,7 @@ TS_check_signer_name(GENERAL_NAME *tsa_name, X509 *signer)
710 gen_names = X509_get_ext_d2i(signer, NID_subject_alt_name, 710 gen_names = X509_get_ext_d2i(signer, NID_subject_alt_name,
711 NULL, &idx); 711 NULL, &idx);
712 while (gen_names != NULL && 712 while (gen_names != NULL &&
713 !(found = TS_find_name(gen_names, tsa_name) >= 0)) { 713 !(found = (TS_find_name(gen_names, tsa_name) >= 0))) {
714 /* Get the next subject alternative name, 714 /* Get the next subject alternative name,
715 although there should be no more than one. */ 715 although there should be no more than one. */
716 GENERAL_NAMES_free(gen_names); 716 GENERAL_NAMES_free(gen_names);