From 1c68ad08a9adf5c426e1b61035f9885390342ee9 Mon Sep 17 00:00:00 2001 From: Pedro Franco de Carvalho Date: Tue, 18 Feb 2025 20:19:39 -0300 Subject: [PATCH] Revert "fix: fix slice init length (#3785)" This reverts commit 0240f85adcd1a5b448841dac5bc1b4c6dc9e2301. Reverted to handle a release issue. --- pki/util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pki/util.go b/pki/util.go index 9f093af4..b052ff80 100644 --- a/pki/util.go +++ b/pki/util.go @@ -506,8 +506,8 @@ func DeepEqualIPsAltNames(oldIPs, newIPs []net.IP) bool { if len(oldIPs) != len(newIPs) { return false } - oldIPsStrings := make([]string, 0, len(oldIPs)) - newIPsStrings := make([]string, 0, len(newIPs)) + oldIPsStrings := make([]string, len(oldIPs)) + newIPsStrings := make([]string, len(newIPs)) for i := range oldIPs { oldIPsStrings = append(oldIPsStrings, oldIPs[i].String()) newIPsStrings = append(newIPsStrings, newIPs[i].String())