list = t_strsplit_tabescaped(args);
if (list[0] == NULL || list[1] == NULL ||
str_to_uint(list[0], &id) < 0 || id == 0) {
- i_error("BUG: Authentication client %u "
+ e_error(handler->conn->event,
+ "BUG: Authentication client %u "
"sent broken AUTH request", handler->client_pid);
return FALSE;
}
mech = &mech_dovecot_token;
if (strcmp(list[1], mech->mech_name) != 0) {
/* unsupported mechanism */
- i_error("BUG: Authentication client %u requested invalid "
+ e_error(handler->conn->event,
+ "BUG: Authentication client %u requested invalid "
"authentication mechanism %s (DOVECOT-TOKEN required)",
handler->client_pid, str_sanitize(list[1], MAX_MECH_NAME_LEN));
return FALSE;
mech = mech_register_find(auth_default->reg, list[1]);
if (mech == NULL) {
/* unsupported mechanism */
- i_error("BUG: Authentication client %u requested unsupported "
+ e_error(handler->conn->event,
+ "BUG: Authentication client %u requested unsupported "
"authentication mechanism %s", handler->client_pid,
str_sanitize(list[1], MAX_MECH_NAME_LEN));
return FALSE;
}
if (*list != NULL) {
- i_error("BUG: Authentication client %u "
+ e_error(handler->conn->event,
+ "BUG: Authentication client %u "
"sent AUTH parameters after 'resp'",
handler->client_pid);
auth_request_unref(&request);
}
if (request->fields.service == NULL) {
- i_error("BUG: Authentication client %u "
+ e_error(handler->conn->event,
+ "BUG: Authentication client %u "
"didn't specify service in request",
handler->client_pid);
auth_request_unref(&request);
return FALSE;
}
if (hash_table_lookup(handler->requests, POINTER_CAST(id)) != NULL) {
- i_error("BUG: Authentication client %u "
+ e_error(handler->conn->event,
+ "BUG: Authentication client %u "
"sent a duplicate ID %u", handler->client_pid, id);
auth_request_unref(&request);
return FALSE;
data = strchr(args, '\t');
if (data == NULL || str_to_uint(t_strdup_until(args, data), &id) < 0) {
- i_error("BUG: Authentication client sent broken CONT request");
+ e_error(handler->conn->event,
+ "BUG: Authentication client sent broken CONT request");
return FALSE;
}
data++;