]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-master: Add data stack frame to opening config fd
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 10 Mar 2023 13:48:55 +0000 (15:48 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 20 Nov 2023 12:11:40 +0000 (14:11 +0200)
src/lib-master/master-service-settings.c

index 8cc351cab175983e3a2fc1165224ef5f9db978cc..41a4537d661475024d9c3479670a33f1ddb5d516 100644 (file)
@@ -569,7 +569,10 @@ int master_service_settings_read(struct master_service *service,
        } else if ((service->flags & MASTER_SERVICE_FLAG_NO_CONFIG_SETTINGS) == 0) {
                /* Open config via socket if possible. If it doesn't work,
                   execute doveconf -F. */
-               fd = master_service_open_config(service, input, &path, error_r);
+               T_BEGIN {
+                       fd = master_service_open_config(service, input, &path,
+                                                       error_r);
+               } T_END_PASS_STR_IF(fd == -1, error_r);
                if (fd == -1) {
                        if (errno == EACCES)
                                output_r->permission_denied = TRUE;