]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: auth-sasl - Remove use of array_is_created() as it is implied by array_is_empty()
authorStephan Bosch <stephan.bosch@open-xchange.com>
Sun, 31 Aug 2025 20:54:47 +0000 (22:54 +0200)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Thu, 9 Oct 2025 08:41:22 +0000 (08:41 +0000)
src/auth/auth-sasl.c

index 3f8e70a3253afa5a4866dbdba2379fb1df2084b3..cc0eb14f64cb795b0edddaecf22d732b6f8fd82e 100644 (file)
@@ -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) {