[dovecot-cvs] dovecot/src/auth auth-request.c,1.77,1.78
tss at dovecot.org
tss at dovecot.org
Sun Dec 31 16:11:17 UTC 2006
Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv9526
Modified Files:
auth-request.c
Log Message:
We crashed if auth cache was disabled. Patch by Andrey Panin.
Index: auth-request.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-request.c,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -d -r1.77 -r1.78
--- auth-request.c 21 Dec 2006 16:01:15 -0000 1.77
+++ auth-request.c 31 Dec 2006 16:11:14 -0000 1.78
@@ -572,6 +572,9 @@
struct userdb_module *userdb = request->userdb->userdb;
const char *str;
+ if (passdb_cache == NULL || userdb->cache_key == NULL)
+ return;
+
str = auth_stream_reply_export(reply);
auth_cache_insert(passdb_cache, request, userdb->cache_key, str,
result == PASSDB_RESULT_OK);
More information about the dovecot-cvs
mailing list