[Dovecot] 1.0-test67 - Unknown User bug
Timo Sirainen
tss at iki.fi
Fri Apr 8 13:25:24 EEST 2005
On 8.4.2005, at 10:20, Andrew Hutchings wrote:
> Another new bug that has cropped up with the scheme fix change, again
> should be a quick fix:
>
> 272058-Apr 8 06:04:47 svr21 dovecot: auth-worker(default):
> sql(user at domain.co.uk,81.137.181.225): unknown user
> 272059-Apr 8 06:04:47 svr21 dovecot: auth-worker(default): file
> passdb-sql.c: line 90 (sql_query_callback): assertion failed: (scheme
> !=
> NULL)
Right:
Index: passdb-sql.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/passdb-sql.c,v
retrieving revision 1.16
diff -u -r1.16 passdb-sql.c
--- passdb-sql.c 7 Apr 2005 23:42:46 -0000 1.16
+++ passdb-sql.c 8 Apr 2005 10:24:42 -0000
@@ -87,7 +87,8 @@
}
scheme = password_get_scheme(&password);
- i_assert(scheme != NULL); /* auth_request_set_field() sets it */
+ /* auth_request_set_field() sets scheme */
+ i_assert(password == NULL || scheme != NULL);
if (sql_request->credentials != -1) {
passdb_handle_credentials(passdb_result,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://dovecot.org/pipermail/dovecot/attachments/20050408/20d0caf9/attachment-0001.bin>
More information about the dovecot
mailing list