]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth cache wasn't working correctly for all fields (e.g. allow_nets) with blocking...
authorTimo Sirainen <tss@iki.fi>
Thu, 8 Jan 2009 16:34:22 +0000 (11:34 -0500)
committerTimo Sirainen <tss@iki.fi>
Thu, 8 Jan 2009 16:34:22 +0000 (11:34 -0500)
The extra cache-only fields weren't transferred to the main auth process
which was handling the cached entries.

--HG--
branch : HEAD

src/auth/auth-worker-client.c

index fdff0fc4bf216b782ef86dc4197616ed169d40db..3d30eceed989ac9e44915142d4d13ba085e86a0b 100644 (file)
@@ -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');