[dovecot-cvs] dovecot/src/auth passdb-checkpassword.c,1.31,1.32
tss at dovecot.org
tss at dovecot.org
Fri Feb 16 17:26:21 UTC 2007
Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv13649
Modified Files:
passdb-checkpassword.c
Log Message:
Use auth_request_set_fields() to set the fields returned by checkpassword
script instead of auth_stream_import()ing directly into extra_fields. This
way checkpassword can set special extra fields.
Index: passdb-checkpassword.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/passdb-checkpassword.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- passdb-checkpassword.c 26 Jan 2007 13:58:49 -0000 1.31
+++ passdb-checkpassword.c 16 Feb 2007 17:26:19 -0000 1.32
@@ -74,10 +74,9 @@
"LF characters in checkpassword reply");
result = PASSDB_RESULT_INTERNAL_FAILURE;
} else {
- request->request->extra_fields =
- auth_stream_reply_init(request->request);
- auth_stream_reply_import(request->request->extra_fields,
- str_c(request->input_buf));
+ auth_request_set_fields(request->request,
+ t_strsplit(str_c(request->input_buf), "\t"),
+ NULL);
}
}
More information about the dovecot-cvs
mailing list