From: Stephan Bosch Date: Sun, 31 Aug 2025 20:54:47 +0000 (+0200) Subject: auth: auth-sasl - Remove use of array_is_created() as it is implied by array_is_empty() X-Git-Tag: 2.4.2~205 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=567d59d883fa45a3b3da7e8b8b3c20cda8f7ecba;p=thirdparty%2Fdovecot%2Fcore.git auth: auth-sasl - Remove use of array_is_created() as it is implied by array_is_empty() --- 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) {