less bizarre code
we know that there is only one command in progress, so there is no need to employ tricks to access the last command.
This commit is contained in:
parent
7e1c16ae02
commit
cf6a7b4d18
|
@ -1040,8 +1040,7 @@ get_cmd_result( imap_store_t *ctx, struct imap_cmd *tcmd )
|
||||||
} else if (*arg == '+') {
|
} else if (*arg == '+') {
|
||||||
/* This can happen only with the last command underway, as
|
/* This can happen only with the last command underway, as
|
||||||
it enforces a round-trip. */
|
it enforces a round-trip. */
|
||||||
cmdp = (struct imap_cmd *)((char *)ctx->in_progress_append -
|
cmdp = ctx->in_progress;
|
||||||
offsetof(struct imap_cmd, next));
|
|
||||||
if (cmdp->param.data) {
|
if (cmdp->param.data) {
|
||||||
n = socket_write( &ctx->buf.sock, cmdp->param.data, cmdp->param.data_len );
|
n = socket_write( &ctx->buf.sock, cmdp->param.data, cmdp->param.data_len );
|
||||||
free( cmdp->param.data );
|
free( cmdp->param.data );
|
||||||
|
|
Loading…
Reference in New Issue
Block a user