Skip to content

Commit 3fdb968

Browse files
committed
lib-master: If stats_writer_socket_path is empty, don't try to send stats
1 parent 9dad6c9 commit 3fdb968

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib-master/master-service.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ master_service_init(const char *name, enum master_service_flags flags,
368368
if ((flags & MASTER_SERVICE_FLAG_DONT_SEND_STATS) == 0) {
369369
/* Initialize stats-client early so it can see all events. */
370370
value = getenv(DOVECOT_STATS_WRITER_SOCKET_PATH);
371-
if (value != NULL)
371+
if (value != NULL && value[0] != '\0')
372372
service->stats_client = stats_client_init(value, FALSE);
373373
}
374374

0 commit comments

Comments
 (0)