From: Timo Sirainen Date: Thu, 25 Mar 2021 08:59:19 +0000 (+0200) Subject: push-notification: Fix logging initialization error X-Git-Tag: 2.3.15~124 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=444b4afdf0ca7baa839e712ad3fc3a6d6d41482b;p=thirdparty%2Fdovecot%2Fcore.git push-notification: Fix logging initialization error --- diff --git a/src/plugins/push-notification/push-notification-drivers.c b/src/plugins/push-notification/push-notification-drivers.c index 36c788c02d..1f55b4360a 100644 --- a/src/plugins/push-notification/push-notification-drivers.c +++ b/src/plugins/push-notification/push-notification-drivers.c @@ -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);