From 1d0a9371e5740e18d962a8bb803ac63220074cfb Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 5 Jun 2017 19:05:58 +0300 Subject: [PATCH] push-notification: Fix crash in OX driver's deinit The http_client doesn't always exist. --- src/plugins/push-notification/push-notification-driver-ox.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.47.3