(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/imap/cmd-append.c) |
| |
| 452 | | | static struct mailbox * |
| 453 | | | get_mailbox(struct client_command_context *cmd, const char *name) |
| 454 | | | { |
| 455 | | | struct mail_storage *storage; |
| 456 | | | struct mailbox *box; |
| 457 | | | |
| 458 | | | if (!client_verify_mailbox_name(cmd, name, |
| 459 | [+] | | CLIENT_VERIFY_MAILBOX_SHOULD_EXIST_TRYCREATE)) |
 |
| 460 | | | return NULL; |
| 461 | | | |
| 462 | | | storage = client_find_storage(cmd, &name); |
| 463 | | | if (storage == NULL) |
Event 11:
Skipping " if". storage == (void *)0 evaluates to false.
hide
|
|
| 464 | | | return NULL; |
| 465 | | | |
| 466 | | | if (cmd->client->mailbox != NULL && |
Event 12:
Skipping " if". cmd->client->mailbox != (void *)0 evaluates to false.
hide
|
|
| 467 | | | mailbox_equals(cmd->client->mailbox, storage, name)) |
| 468 | | | return cmd->client->mailbox; |
| 469 | | | |
| 470 | | | box = mailbox_open(&storage, name, NULL, MAILBOX_OPEN_SAVEONLY | |
| 471 | [+] | | MAILBOX_OPEN_FAST | MAILBOX_OPEN_KEEP_RECENT); |
Event 13:
The resource of interest is allocated inside mailbox_open().
hide
|
|
 |
| |