Text   |  XML   |  ReML   |   Visible Warnings:

Free Null Pointer  at mail-storage.c:276

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

mailbox_open

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/mail-storage.c)expand/collapse
Show more  
 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;
 461          struct mailbox *box;
 462   
 463          if (storage->list->v.get_storage != NULL) {
 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);
 471   
 472[+]         if (!mailbox_list_is_valid_existing_name(storage->list, name)) {
 473                  mail_storage_set_error(storage, MAIL_ERROR_PARAMS,
 474[+]                                        "Invalid mailbox name");
expand/collapse

mail_storage_set_error

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/mail-storage.c)expand/collapse
Show more  
 273  void mail_storage_set_error(struct mail_storage *storage,
 274                              enum mail_error error, const char *string)
 275  {
 276          i_free(storage->error_string);
Show more  
Show more  




Change Warning 11397.24527 : Free Null Pointer

Priority:
State:
Finding:
Owner:
Note: