From 567d59d883fa45a3b3da7e8b8b3c20cda8f7ecba Mon Sep 17 00:00:00 2001 From: Stephan Bosch Date: Sun, 31 Aug 2025 22:54:47 +0200 Subject: [PATCH] auth: auth-sasl - Remove use of array_is_created() as it is implied by array_is_empty() --- src/auth/auth-sasl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/auth/auth-sasl.c b/src/auth/auth-sasl.c index 3f8e70a325..cc0eb14f64 100644 --- a/src/auth/auth-sasl.c +++ b/src/auth/auth-sasl.c @@ -418,8 +418,7 @@ mech_register_init(const struct auth_settings *set) reg->handshake = str_new(pool, 512); reg->handshake_cbind = str_new(pool, 256); - if (!array_is_created(&set->mechanisms) || - array_is_empty(&set->mechanisms)) + if (array_is_empty(&set->mechanisms)) i_fatal("No authentication mechanisms configured"); array_foreach_elem(&set->mechanisms, name) { -- 2.47.3