diff options
author | Wolfgang Breyha <wbreyha@gmx.net> | 2021-10-24 12:46:29 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2021-10-24 12:46:29 +0100 |
commit | 9eca4f4b6902ff84b90d9bec9605896394f3d690 (patch) | |
tree | 97e4a8cfb53503a72a3b5afea07e8df64fb8fff0 /src | |
parent | 568506397d1e428945c6041eb9f8ed19ee825229 (diff) |
Fix error message for multiple authenticators misconfiguration. Bug 2817
Diffstat (limited to 'src')
-rw-r--r-- | src/src/readconf.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 |