Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/doveadm/client-connection-tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,11 @@ static bool client_handle_command_ctx(struct client_connection_tcp *conn,
doveadm_verbose = TRUE;
break;
case DOVEADM_PROTOCOL_CMD_FLAG_EXTRA_FIELDS:
if (argc == 0) {
e_error(cctx->event, "doveadm client: "
"Missing extra fields argument");
return FALSE;
}
cctx->extra_fields = t_strsplit_tabescaped(args[0]);
args++; argc--;
break;
Expand All @@ -299,6 +304,10 @@ static bool client_handle_command_ctx(struct client_connection_tcp *conn,
return FALSE;
}
}
if (argc < 2) {
e_error(cctx->event, "doveadm client: No command given");
return FALSE;
}
cctx->username = args[0]; args++; argc--;
cmd_name = args[0];

Expand Down