From: Timo Sirainen Date: Mon, 5 Jun 2017 16:05:58 +0000 (+0300) Subject: push-notification: Fix crash in OX driver's deinit X-Git-Tag: 2.2.31.rc1~159 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1d0a9371e5740e18d962a8bb803ac63220074cfb;p=thirdparty%2Fdovecot%2Fcore.git push-notification: Fix crash in OX driver's deinit The http_client doesn't always exist. --- diff --git a/src/plugins/push-notification/push-notification-driver-ox.c b/src/plugins/push-notification/push-notification-driver-ox.c index 9acea261f1..d6dfafd5fe 100644 --- a/src/plugins/push-notification/push-notification-driver-ox.c +++ b/src/plugins/push-notification/push-notification-driver-ox.c @@ -422,7 +422,8 @@ static void push_notification_driver_ox_deinit i_free(dconfig->cached_ox_metadata); if (ox_global != NULL) { - http_client_wait(ox_global->http_client); + if (ox_global->http_client != NULL) + http_client_wait(ox_global->http_client); i_assert(ox_global->refcount > 0); --ox_global->refcount; }