From: Timo Sirainen Date: Thu, 8 Jan 2009 16:34:22 +0000 (-0500) Subject: auth cache wasn't working correctly for all fields (e.g. allow_nets) with blocking... X-Git-Tag: 1.2.beta1~145 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=33dd58ab84a020c4f061d2f6031eb6d4c168df1b;p=thirdparty%2Fdovecot%2Fcore.git auth cache wasn't working correctly for all fields (e.g. allow_nets) with blocking passdbs. The extra cache-only fields weren't transferred to the main auth process which was handling the cached entries. --HG-- branch : HEAD --- diff --git a/src/auth/auth-worker-client.c b/src/auth/auth-worker-client.c index fdff0fc4bf..3d30eceed9 100644 --- a/src/auth/auth-worker-client.c +++ b/src/auth/auth-worker-client.c @@ -123,6 +123,11 @@ static void verify_plain_callback(enum passdb_result result, auth_stream_reply_export(request->extra_fields); auth_stream_reply_import(reply, fields); } + if (request->extra_cache_fields != NULL) { + const char *fields = + auth_stream_reply_export(request->extra_cache_fields); + auth_stream_reply_import(reply, fields); + } } str = auth_stream_reply_get_str(reply); str_append_c(str, '\n');