From c9599af084474d0d04bada8dbffeded4065d5e9a Mon Sep 17 00:00:00 2001 From: jm96441n Date: Wed, 28 Jun 2023 10:57:50 -0400 Subject: [PATCH] actually return value --- agent/structs/config_entry_inline_certificate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/structs/config_entry_inline_certificate.go b/agent/structs/config_entry_inline_certificate.go index 5cace9965b9f..de11f2c95045 100644 --- a/agent/structs/config_entry_inline_certificate.go +++ b/agent/structs/config_entry_inline_certificate.go @@ -109,7 +109,7 @@ func validateKeyLength(privateKeyBlock *pem.Block) error { keyBitLen := key.N.BitLen() if version.IsFIPS() { - fipsLenCheck(keyBitLen) + return fipsLenCheck(keyBitLen) } return nonFipsLenCheck(keyBitLen)