reply_r->source_ip = value;
else if (strcmp(key, "port") == 0) {
if (net_str2port(value, &reply_r->port) < 0) {
- i_error("Auth service returned invalid "
+ e_error(client->event,
+ "Auth service returned invalid "
"port number: %s", value);
}
} else if (strcmp(key, "destuser") == 0)
reply_r->password = value;
else if (strcmp(key, "proxy_timeout") == 0) {
if (str_to_uint(value, &reply_r->proxy_timeout_msecs) < 0) {
- i_error("BUG: Auth service returned invalid "
+ e_error(client->event,
+ "BUG: Auth service returned invalid "
"proxy_timeout value: %s", value);
}
reply_r->proxy_timeout_msecs *= 1000;
} else if (strcmp(key, "proxy_refresh") == 0) {
if (str_to_uint(value, &reply_r->proxy_refresh_secs) < 0) {
- i_error("BUG: Auth service returned invalid "
+ e_error(client->event,
+ "BUG: Auth service returned invalid "
"proxy_refresh value: %s", value);
}
} else if (strcmp(key, "proxy_mech") == 0)
/* the fd may still be hanging somewhere in kernel or another
process. make sure the client gets disconnected. */
if (shutdown(client->fd, SHUT_RDWR) < 0 && errno != ENOTCONN)
- i_error("shutdown() failed: %m");
+ e_error(client->event, "shutdown() failed: %m");
if (data != NULL) {
/* e.g. mail_max_userip_connections is reached */
net = t_strsplit_spaces(client->set->login_trusted_networks, ", ");
for (; *net != NULL; net++) {
if (net_parse_range(*net, &net_ip, &bits) < 0) {
- i_error("login_trusted_networks: "
+ e_error(client->event, "login_trusted_networks: "
"Invalid network '%s'", *net);
break;
}
client->set->director_username_hash,
&client->director_username_hash_cache,
&error)) {
- i_error("Failed to expand director_username_hash=%s: %s",
+ e_error(client->event,
+ "Failed to expand director_username_hash=%s: %s",
client->set->director_username_hash, error);
return FALSE;
}