From ee31348a708804576098bd4e2ffdcc1a8f741887 Mon Sep 17 00:00:00 2001 From: Karol Szwaj Date: Fri, 23 Feb 2024 23:30:17 +0100 Subject: [PATCH] fix gosec lint Signed-off-by: Karol Szwaj --- internal/gatewayapi/route.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/gatewayapi/route.go b/internal/gatewayapi/route.go index f2b99db78f62..43c3c44aceef 100644 --- a/internal/gatewayapi/route.go +++ b/internal/gatewayapi/route.go @@ -173,6 +173,7 @@ func (t *Translator) processHTTPRouteRules(httpRoute *HTTPRouteContext, parentRe dstAddrTypeMap := make(map[ir.DestinationAddressType]int) for _, backendRef := range rule.BackendRefs { + backendRef := backendRef backendRefContext := BackendRefContext{ HTTPBackendRef: &backendRef, } @@ -471,6 +472,7 @@ func (t *Translator) processGRPCRouteRules(grpcRoute *GRPCRouteContext, parentRe } for _, backendRef := range rule.BackendRefs { + backendRef := backendRef backendRefContext := BackendRefContext{ GRPCBackendRef: &backendRef, }