From 67e593b7a11daafceaa5b5c55dee650b60a6d508 Mon Sep 17 00:00:00 2001 From: job Date: Wed, 6 Sep 2023 15:53:07 +0000 Subject: [PATCH] Initialize afi & safi to zero OK tb@ --- lib/libcrypto/x509/x509_addr.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/libcrypto/x509/x509_addr.c b/lib/libcrypto/x509/x509_addr.c index 0506fe3a643..735891fd20d 100644 --- a/lib/libcrypto/x509/x509_addr.c +++ b/lib/libcrypto/x509/x509_addr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_addr.c,v 1.87 2023/09/06 15:32:54 tb Exp $ */ +/* $OpenBSD: x509_addr.c,v 1.88 2023/09/06 15:53:07 job Exp $ */ /* * Contributed to the OpenSSL Project by the American Registry for * Internet Numbers ("ARIN"). @@ -676,9 +676,10 @@ i2r_IPAddrBlocks(const X509V3_EXT_METHOD *method, void *ext, BIO *out, { const IPAddrBlocks *addr = ext; IPAddressFamily *af; - uint16_t afi; - uint8_t safi; - int i, safi_is_set; + uint16_t afi = 0; + uint8_t safi = 0; + int safi_is_set = 0; + int i; for (i = 0; i < sk_IPAddressFamily_num(addr); i++) { af = sk_IPAddressFamily_value(addr, i); -- 2.20.1