Text   |  XML   |  ReML   |   Visible Warnings:

Unreachable Computation  at cmd-select.c:228

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

select_qresync

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/imap/cmd-select.c)expand/collapse
Show more  
 216  static int select_qresync(struct imap_select_context *ctx)
 217  {
 218          struct imap_fetch_context *fetch_ctx;
 219          struct mail_search_args *search_args;
 220   
 221          search_args = mail_search_build_init();
 222          search_args->args = p_new(search_args->pool, struct mail_search_arg, 1);
 223          search_args->args->type = SEARCH_UIDSET;
 224          search_args->args->value.seqset = ctx->qresync_known_uids;
 225   
 226          fetch_ctx = imap_fetch_init(ctx->cmd, ctx->box);
 227          if (fetch_ctx == NULL)
 228                  return -1;
 229   
 230          fetch_ctx->search_args = search_args;
 231          fetch_ctx->send_vanished = TRUE;
 232          fetch_ctx->qresync_sample_seqset = &ctx->qresync_sample_seqset;
 233          fetch_ctx->qresync_sample_uidset = &ctx->qresync_sample_uidset;
 234   
 235          if (!imap_fetch_add_changed_since(fetch_ctx, ctx->qresync_modseq) ||
 236              !imap_fetch_init_handler(fetch_ctx, "UID", NULL) ||
 237              !imap_fetch_init_handler(fetch_ctx, "FLAGS", NULL) ||
 238              !imap_fetch_init_handler(fetch_ctx, "MODSEQ", NULL)) {
 239                  (void)imap_fetch_deinit(fetch_ctx);
 240                  return -1;
 241          }
 242   
 243          if (imap_fetch_begin(fetch_ctx) == 0) {
 244                  if (imap_fetch_more(fetch_ctx) == 0) {
 245                          /* unfinished */
 246                          ctx->fetch_ctx = fetch_ctx;
 247                          ctx->cmd->state = CLIENT_COMMAND_STATE_WAIT_OUTPUT;
 248   
 249                          ctx->cmd->func = cmd_select_continue;
 250                          ctx->cmd->context = ctx;
 251                          return FALSE;
 252                  }
 253          }
 254   
 255          return imap_fetch_deinit(fetch_ctx);
 256  }
Show more  




Change Warning 7984.24893 : Unreachable Computation

Priority:
State:
Finding:
Owner:
Note: