]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-master: Do not attempt to load SSL module if no SSL support is compiled in
authorAki Tuomi <aki.tuomi@dovecot.fi>
Tue, 10 Apr 2018 13:00:38 +0000 (16:00 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Thu, 12 Apr 2018 09:34:38 +0000 (09:34 +0000)
Fixes imap-login: Error: imap-login(init): Fatal: Cannot load SSL module: SSL support not compiled in

Broken in 754896551f0422cda5d78500b26700eec5343c5b

Found by bjornar

src/lib-master/master-service.c

index 02d6735edf5399f78ef2385d5fd941d06101f085..48cfd6d36a850b25829459d348f8284261121705 100644 (file)
@@ -261,9 +261,11 @@ master_service_init(const char *name, enum master_service_flags flags,
                master_service_init_socket_listeners(service);
        } T_END;
 
+#ifdef HAVE_SSL
        /* load SSL module if necessary */
        if (service->want_ssl_settings && ssl_module_load(&error) < 0)
                i_fatal("Cannot load SSL module: %s", error);
+#endif
 
        /* set up some kind of logging until we know exactly how and where
           we want to log */