Mercurial > dovecot > core-2.2
changeset 3184:c59506c04088 HEAD
Blocking userdb: Don't break if user wasn't found.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 07 Mar 2005 21:16:15 +0200 |
parents | 16ea551957ed |
children | 3089083e1d47 |
files | src/auth/auth-worker-client.c src/auth/userdb-blocking.c |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/auth-worker-client.c Mon Mar 07 20:55:13 2005 +0200 +++ b/src/auth/auth-worker-client.c Mon Mar 07 21:16:15 2005 +0200 @@ -220,7 +220,8 @@ str = t_str_new(64); str_printfa(str, "%u\t", auth_request->id); - str_append(str, result); + if (result != NULL) + str_append(str, result); str_append_c(str, '\n'); o_stream_send(client->output, str_data(str), str_len(str));
--- a/src/auth/userdb-blocking.c Mon Mar 07 20:55:13 2005 +0200 +++ b/src/auth/userdb-blocking.c Mon Mar 07 21:16:15 2005 +0200 @@ -10,6 +10,9 @@ static void user_callback(struct auth_request *request, const char *reply) { + if (*reply == '\0') + reply = NULL; + request->private_callback.userdb(reply, request); }