]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Inherit auth client connection event from the global auth_event
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 5 Aug 2020 19:43:55 +0000 (22:43 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Thu, 27 Aug 2020 06:20:18 +0000 (06:20 +0000)
src/auth/auth-client-connection.c

index ac3b56d90455343dcc50a939be13a8005e880c7e..4975ebfe564faad0a82e3e50baf56b2b274f4771 100644 (file)
@@ -335,9 +335,8 @@ void auth_client_connection_create(struct auth *auth, int fd,
        conn->connect_uid = ++connect_uid_counter;
        conn->login_requests = login_requests;
        conn->token_auth = token_auth;
-       conn->event = event_create(NULL);
+       conn->event = event_create(auth_event);
        event_set_forced_debug(conn->event, auth->set->debug);
-       event_add_category(conn->event, &event_category_auth);
        random_fill(conn->cookie, sizeof(conn->cookie));
 
        conn->fd = fd;