]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Fix crash when using empty auth listener type
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 16 Dec 2022 08:52:00 +0000 (10:52 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Fri, 16 Dec 2022 14:27:50 +0000 (14:27 +0000)
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

src/auth/main.c

index 7f2ff933348eb17b5dbc3b41bda43adf3e3ab097..5a2ecb1d75ff2cd9cf8aa1171bd5608f6e5e9e8c 100644 (file)
@@ -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",