summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorjob <>2023-09-11 00:50:47 +0000
committerjob <>2023-09-11 00:50:47 +0000
commit14636b4b1e79a74b1dd47909df91841964ac78b8 (patch)
treedfdd2be7646d3918d742ee4b0d2807a4da6243f9 /src/lib
parent439052492960f8018c044ad859f1bfa787fc993b (diff)
downloadopenbsd-14636b4b1e79a74b1dd47909df91841964ac78b8.tar.gz
openbsd-14636b4b1e79a74b1dd47909df91841964ac78b8.tar.bz2
openbsd-14636b4b1e79a74b1dd47909df91841964ac78b8.zip
Back out superfluous initialization
requested by jsing@
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/x509/x509_addr.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/libcrypto/x509/x509_addr.c b/src/lib/libcrypto/x509/x509_addr.c
index 735891fd20..a0da2af6f6 100644
--- a/src/lib/libcrypto/x509/x509_addr.c
+++ b/src/lib/libcrypto/x509/x509_addr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_addr.c,v 1.88 2023/09/06 15:53:07 job Exp $ */ 1/* $OpenBSD: x509_addr.c,v 1.89 2023/09/11 00:50:47 job Exp $ */
2/* 2/*
3 * Contributed to the OpenSSL Project by the American Registry for 3 * Contributed to the OpenSSL Project by the American Registry for
4 * Internet Numbers ("ARIN"). 4 * Internet Numbers ("ARIN").
@@ -676,10 +676,9 @@ i2r_IPAddrBlocks(const X509V3_EXT_METHOD *method, void *ext, BIO *out,
676{ 676{
677 const IPAddrBlocks *addr = ext; 677 const IPAddrBlocks *addr = ext;
678 IPAddressFamily *af; 678 IPAddressFamily *af;
679 uint16_t afi = 0; 679 uint16_t afi;
680 uint8_t safi = 0; 680 uint8_t safi;
681 int safi_is_set = 0; 681 int i, safi_is_set;
682 int i;
683 682
684 for (i = 0; i < sk_IPAddressFamily_num(addr); i++) { 683 for (i = 0; i < sk_IPAddressFamily_num(addr); i++) {
685 af = sk_IPAddressFamily_value(addr, i); 684 af = sk_IPAddressFamily_value(addr, i);