]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: If mail_user_created hook fails, don't continue calling the hooks
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 28 Dec 2023 23:12:32 +0000 (18:12 -0500)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Feb 2025 10:34:10 +0000 (12:34 +0200)
src/lib-storage/mail-storage-hooks.c

index 98a256d878b2e3f3da2b683d9af590e77537d865..3506aaf3a9550ce71287f839b773f72a1992df6d 100644 (file)
@@ -167,6 +167,8 @@ void hook_mail_user_created(struct mail_user *user)
                        hooks->mail_user_created(user);
                        hook_build_update(ctx, user->vlast);
                } T_END;
+               if (user->error != NULL)
+                       break;
        }
        user->vlast = NULL;
        hook_build_deinit(&ctx);