From: Wolfgang Breyha Date: Sun, 24 Oct 2021 11:46:29 +0000 (+0100) Subject: Fix error message for multiple authenticators misconfiguration. Bug 2817 X-Git-Tag: exim-4.96-RC0~141 X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/9eca4f4b6902ff84b90d9bec9605896394f3d690?ds=sidebyside Fix error message for multiple authenticators misconfiguration. Bug 2817 --- diff --git a/src/src/readconf.c b/src/src/readconf.c index 754ab197b..907ffeb71 100644 --- a/src/src/readconf.c +++ b/src/src/readconf.c @@ -4190,11 +4190,12 @@ for (auth_instance * au = auths; au; au = au->next) for (auth_instance * bu = au->next; bu; bu = bu->next) if (strcmpic(au->public_name, bu->public_name) == 0) - if ((au->client && bu->client) || (au->server && bu->server)) + if ( au->client && bu->client + || au->server && bu->server) log_write(0, LOG_PANIC_DIE|LOG_CONFIG, "two %s authenticators " "(%s and %s) have the same public name (%s)", - au->client ? US"client" : US"server", au->name, bu->name, - au->public_name); + au->client && bu->client ? US"client" : US"server", + au->name, bu->name, au->public_name); #ifndef DISABLE_PIPE_CONNECT nauths++; #endif