(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-index/mail-transaction-log.c) |
| |
| 72 | | | int mail_transaction_log_open(struct mail_transaction_log *log) |
| 73 | | | { |
| 74 | | | struct mail_transaction_log_file *file; |
| 75 | | | const char *path; |
| 76 | | | int ret; |
| 77 | | | |
| 78 | | | log->dotlock_settings.use_excl_lock = log->index->use_excl_dotlocks; |
| 79 | | | log->dotlock_settings.nfs_flush = log->index->nfs_flush; |
| 80 | | | log->new_dotlock_settings.use_excl_lock = log->index->use_excl_dotlocks; |
| 81 | | | log->new_dotlock_settings.nfs_flush = log->index->nfs_flush; |
| 82 | | | |
| 83 | | | if (log->open_file != NULL) |
Event 1:
Skipping " if". log->open_file != (void *)0 evaluates to false.
hide
|
|
| 84 | | | mail_transaction_log_file_free(&log->open_file); |
| 85 | | | |
| 86 | | | if (MAIL_INDEX_IS_IN_MEMORY(log->index)) |
Event 2:
Skipping " if". log->index->dir == (void *)0 evaluates to false.
hide
|
|
| 87 | | | return 0; |
| 88 | | | |
| 89 | | | path = t_strconcat(log->index->filepath, |
Event 8:
path is set to t_strconcat(...), which evaluates to NULL. See related event 7.
hide
|
|
| 90 | [+] | | MAIL_TRANSACTION_LOG_SUFFIX, NULL); |
 |
| 91 | | | |
| 92 | [+] | | file = mail_transaction_log_file_alloc(log, path); |
Event 9:
path, which evaluates to NULL, is passed to mail_transaction_log_file_alloc() as the second argument. See related event 8.
hide
|
|
 |
| |