From: Timo Sirainen Date: Fri, 16 Dec 2022 08:52:00 +0000 (+0200) Subject: auth: Fix crash when using empty auth listener type X-Git-Tag: 2.4.0~3271 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a44be74fae746f55c82a2aaff97879e93b0fc78;p=thirdparty%2Fdovecot%2Fcore.git auth: Fix crash when using empty auth listener type Remove AUTH_SOCKET_UNKNOWN since there is no need for it. This removes its "" name, which causes unknown socket types to default to AUTH_SOCKET_AUTH and fix this issue. Broken by 9f72a95148f1d998e33bfacaef7b43e57e463d25 --- diff --git a/src/auth/main.c b/src/auth/main.c index 7f2ff93334..5a2ecb1d75 100644 --- a/src/auth/main.c +++ b/src/auth/main.c @@ -38,7 +38,6 @@ #define AUTH_PENALTY_ANVIL_PATH "anvil-auth-penalty" enum auth_socket_type { - AUTH_SOCKET_UNKNOWN = 0, AUTH_SOCKET_AUTH, AUTH_SOCKET_LOGIN, AUTH_SOCKET_MASTER, @@ -55,7 +54,6 @@ struct auth_socket_listener { }; static const char *const auth_socket_type_names[] = { - "", "auth", "login", "master",