]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
push-notification: Fix crash in OX driver's deinit
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 5 Jun 2017 16:05:58 +0000 (19:05 +0300)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Tue, 6 Jun 2017 12:22:29 +0000 (15:22 +0300)
The http_client doesn't always exist.

src/plugins/push-notification/push-notification-driver-ox.c

index 9acea261f1cfba69d1b8dffcd201463794822d0b..d6dfafd5fecca9cc7c974350edc153004742dc35 100644 (file)
@@ -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;
     }