};
struct kick_context {
+ struct event *event;
struct who_context who;
enum doveadm_client_type conn_type;
ARRAY(struct kick_session) kicks;
if (reply != NULL) {
if (str_to_uint(reply, &count) < 0)
- i_error("Unexpected reply from anvil: %s", reply);
+ e_error(ctx->event,
+ "Unexpected reply from anvil: %s", reply);
else
ctx->kicked_count += count;
}
return;
}
ctx.conn_type = cctx->conn_type;
+ ctx.event = cctx->event;
ctx.who.pool = pool_alloconly_create("kick pids", 10240);
if (who_parse_args(&ctx.who, passdb_field, &dest_ip, masks) != 0) {