Skip to content

Commit

Permalink
push-notification: Fix crash in OX driver's deinit
Browse files Browse the repository at this point in the history
The http_client doesn't always exist.
  • Loading branch information
sirainen authored and villesavolainen committed Jun 6, 2017
1 parent 7d84daa commit 1d0a937
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/push-notification/push-notification-driver-ox.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1d0a937

Please sign in to comment.