summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorjob <>2021-09-08 10:49:34 +0000
committerjob <>2021-09-08 10:49:34 +0000
commit5ef15c706587fade4c981dda1523f9c5344a2cb0 (patch)
tree2f0a644540904a5198c25fddc36bebac9bb8b051 /src/lib
parentebd143e5b1b0ef90bc7849974f5dc568793dd11b (diff)
downloadopenbsd-5ef15c706587fade4c981dda1523f9c5344a2cb0.tar.gz
openbsd-5ef15c706587fade4c981dda1523f9c5344a2cb0.tar.bz2
openbsd-5ef15c706587fade4c981dda1523f9c5344a2cb0.zip
Replace bare ; with continue;
OK tb@
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/x509/x509_addr.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/libcrypto/x509/x509_addr.c b/src/lib/libcrypto/x509/x509_addr.c
index 1530c3174c..ccc06bb0bb 100644
--- a/src/lib/libcrypto/x509/x509_addr.c
+++ b/src/lib/libcrypto/x509/x509_addr.c
@@ -346,7 +346,7 @@ i2r_address(BIO *out, const unsigned afi, const unsigned char fill,
346 return 0; 346 return 0;
347 for (n = 16; 347 for (n = 16;
348 n > 1 && addr[n - 1] == 0x00 && addr[n - 2] == 0x00; n -= 2) 348 n > 1 && addr[n - 1] == 0x00 && addr[n - 2] == 0x00; n -= 2)
349 ; 349 continue;
350 for (i = 0; i < n; i += 2) 350 for (i = 0; i < n; i += 2)
351 BIO_printf(out, "%x%s", (addr[i] << 8) | addr[i + 1], 351 BIO_printf(out, "%x%s", (addr[i] << 8) | addr[i + 1],
352 (i < 14 ? ":" : "")); 352 (i < 14 ? ":" : ""));
@@ -556,9 +556,9 @@ range_should_be_prefix(const unsigned char *min, const unsigned char *max,
556 if (memcmp(min, max, length) <= 0) 556 if (memcmp(min, max, length) <= 0)
557 return -1; 557 return -1;
558 for (i = 0; i < length && min[i] == max[i]; i++) 558 for (i = 0; i < length && min[i] == max[i]; i++)
559 ; 559 continue;
560 for (j = length - 1; j >= 0 && min[j] == 0x00 && max[j] == 0xFF; j--) 560 for (j = length - 1; j >= 0 && min[j] == 0x00 && max[j] == 0xFF; j--)
561 ; 561 continue;
562 if (i < j) 562 if (i < j)
563 return -1; 563 return -1;
564 if (i > j) 564 if (i > j)
@@ -656,7 +656,7 @@ make_addressRange(IPAddressOrRange **result, unsigned char *min,
656 goto err; 656 goto err;
657 657
658 for (i = length; i > 0 && min[i - 1] == 0x00; --i) 658 for (i = length; i > 0 && min[i - 1] == 0x00; --i)
659 ; 659 continue;
660 if (!ASN1_BIT_STRING_set(aor->u.addressRange->min, min, i)) 660 if (!ASN1_BIT_STRING_set(aor->u.addressRange->min, min, i))
661 goto err; 661 goto err;
662 aor->u.addressRange->min->flags &= ~7; 662 aor->u.addressRange->min->flags &= ~7;
@@ -670,7 +670,7 @@ make_addressRange(IPAddressOrRange **result, unsigned char *min,
670 } 670 }
671 671
672 for (i = length; i > 0 && max[i - 1] == 0xFF; --i) 672 for (i = length; i > 0 && max[i - 1] == 0xFF; --i)
673 ; 673 continue;
674 if (!ASN1_BIT_STRING_set(aor->u.addressRange->max, max, i)) 674 if (!ASN1_BIT_STRING_set(aor->u.addressRange->max, max, i))
675 goto err; 675 goto err;
676 aor->u.addressRange->max->flags &= ~7; 676 aor->u.addressRange->max->flags &= ~7;
@@ -974,7 +974,7 @@ X509v3_addr_is_canonical(IPAddrBlocks *addr)
974 * subtracting one from b_min first. 974 * subtracting one from b_min first.
975 */ 975 */
976 for (k = length - 1; k >= 0 && b_min[k]-- == 0x00; k--) 976 for (k = length - 1; k >= 0 && b_min[k]-- == 0x00; k--)
977 ; 977 continue;
978 if (memcmp(a_max, b_min, length) >= 0) 978 if (memcmp(a_max, b_min, length) >= 0)
979 return 0; 979 return 0;
980 980
@@ -1055,7 +1055,7 @@ IPAddressOrRanges_canonize(IPAddressOrRanges *aors, const unsigned afi)
1055 * adjacency by subtracting one from b_min first. 1055 * adjacency by subtracting one from b_min first.
1056 */ 1056 */
1057 for (j = length - 1; j >= 0 && b_min[j]-- == 0x00; j--) 1057 for (j = length - 1; j >= 0 && b_min[j]-- == 0x00; j--)
1058 ; 1058 continue;
1059 if (memcmp(a_max, b_min, length) == 0) { 1059 if (memcmp(a_max, b_min, length) == 0) {
1060 IPAddressOrRange *merged; 1060 IPAddressOrRange *merged;
1061 if (!make_addressRange(&merged, a_min, b_max, length)) 1061 if (!make_addressRange(&merged, a_min, b_max, length))