]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
push-notification: Fix logging initialization error
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 25 Mar 2021 08:59:19 +0000 (10:59 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Tue, 6 Apr 2021 11:04:26 +0000 (11:04 +0000)
src/plugins/push-notification/push-notification-drivers.c

index 36c788c02d3e2a740a2ee8046af5e433c3e5a4f5..1f55b4360ad2274d2e35268c5a2168082496619a 100644 (file)
@@ -104,14 +104,13 @@ int push_notification_driver_init(
                                        (p == NULL) ? p : p + 1);
                        ret = driver->v.init(config, user, pool,
                                             &context, &error_r);
-
+                       if (ret < 0)
+                               i_error("%s: %s", driver_name, error_r);
                        hash_table_destroy(&config->config);
                } T_END;
 
-               if (ret < 0) {
-                       i_error("%s: %s", driver_name, error_r);
+               if (ret < 0)
                        return -1;
-               }
        }
 
        duser = p_new(pool, struct push_notification_driver_user, 1);