(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/mail-storage.c) |
| |
| 456 | | | struct mailbox *mailbox_open(struct mail_storage **_storage, const char *name, |
| 457 | | | struct istream *input, |
| 458 | | | enum mailbox_open_flags flags) |
| 459 | | | { |
| 460 | | | struct mail_storage *storage = *_storage; |
Event 1:
storage is set to *_storage.
hide
|
|
| 461 | | | struct mailbox *box; |
| 462 | | | |
| 463 | | | if (storage->list->v.get_storage != NULL) { |
Event 2:
Skipping " if". storage->list->v.get_storage != (void *)0 evaluates to false.
hide
|
|
| 464 | | | if (storage->list->v.get_storage(storage->list, |
| 465 | | | &name, &storage) < 0) |
| 466 | | | return NULL; |
| 467 | | | *_storage = storage; |
| 468 | | | } |
| 469 | | | |
| 470 | [+] | | mail_storage_clear_error(storage); |
Event 3:
storage, which evaluates to *_storage, is passed to mail_storage_clear_error(). See related event 1.
hide
|
|
 |
| 471 | | | |
| 472 | [+] | | if (!mailbox_list_is_valid_existing_name(storage->list, name)) { |
 |
| 473 | | | mail_storage_set_error(storage, MAIL_ERROR_PARAMS, |
Event 7:
storage, which evaluates to *_storage, is passed to mail_storage_set_error() as the first argument. See related event 1.
hide
|
|
| 474 | [+] | | "Invalid mailbox name"); |
 |
| |