From: Timo Sirainen Date: Mon, 2 Feb 2009 17:12:15 +0000 (-0500) Subject: userdb prefetch + blocking passdbs was still broken with non-plaintext auth. X-Git-Tag: 1.2.beta1~45 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d69de4bd54b3f7ba03057d4d28f25fdde4dff84f;p=thirdparty%2Fdovecot%2Fcore.git userdb prefetch + blocking passdbs was still broken with non-plaintext auth. --HG-- branch : HEAD --- diff --git a/src/auth/auth-worker-client.c b/src/auth/auth-worker-client.c index 6e1915c738..629bb71e4a 100644 --- a/src/auth/auth-worker-client.c +++ b/src/auth/auth-worker-client.c @@ -65,22 +65,6 @@ worker_auth_request_new(struct auth_worker_client *client, unsigned int id, return auth_request; } -static void -add_userdb_replies(struct auth_stream_reply *reply, - struct auth_stream_reply *userdb_reply) -{ - const char *const *tmp; - - tmp = auth_stream_split(userdb_reply); - i_assert(*tmp != NULL); - /* first field is the user name */ - tmp++; - for (; *tmp != NULL; tmp++) { - auth_stream_reply_import(reply, - t_strconcat("userdb_", *tmp, NULL)); - } -} - static void auth_worker_send_reply(struct auth_worker_client *client, string_t *str) { @@ -228,8 +212,6 @@ lookup_credentials_callback(enum passdb_result result, auth_stream_reply_export(request->extra_cache_fields); auth_stream_reply_import(reply, fields); } - if (request->userdb_reply != NULL) - add_userdb_replies(reply, request->userdb_reply); } str = auth_stream_reply_get_str(reply); str_append_c(str, '\n');