Mercurial > dovecot > core-2.2
changeset 3605:c533051d19cd HEAD
If blocking userdb lookup fails, don't crash. Also we shouldn't stop trying
other userdbs then.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 24 Sep 2005 13:49:55 +0300 |
parents | 9d2345ba4e30 |
children | 8a8352cda514 |
files | src/auth/userdb-blocking.c |
diffstat | 1 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/userdb-blocking.c Sat Sep 24 13:12:03 2005 +0300 +++ b/src/auth/userdb-blocking.c Sat Sep 24 13:49:55 2005 +0300 @@ -13,12 +13,13 @@ struct auth_stream_reply *stream_reply; if (*reply == '\0') - reply = NULL; + stream_reply = NULL; + else { + stream_reply = auth_stream_reply_init(request); + auth_stream_reply_import(stream_reply, reply); + } - stream_reply = auth_stream_reply_init(request); - auth_stream_reply_import(stream_reply, reply); - - request->private_callback.userdb(stream_reply, request); + auth_request_userdb_callback(stream_reply, request); } void userdb_blocking_lookup(struct auth_request *request)