diff options
| author | miod <> | 2015-07-19 02:43:24 +0000 |
|---|---|---|
| committer | miod <> | 2015-07-19 02:43:24 +0000 |
| commit | 2f199ccbed3e30323138538315273cc845854cb9 (patch) | |
| tree | 1ea9dfbb5f41a151b1bcda50c3afd9907844fcbc /src | |
| parent | 3a1c21ea05417cdafece6fcfc145ab3f83910695 (diff) | |
| download | openbsd-2f199ccbed3e30323138538315273cc845854cb9.tar.gz openbsd-2f199ccbed3e30323138538315273cc845854cb9.tar.bz2 openbsd-2f199ccbed3e30323138538315273cc845854cb9.zip | |
Put explicit braces around assignment used in a conditional.
ok bcook@ doug@
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/ts/ts_rsp_verify.c | 4 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/ts/ts_rsp_verify.c | 4 |
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); |
