Fix based on upstream fix:
https://github.com/dinhviethoa/libetpan/commit/1fe8fb
Fixes our bug #3821:
Potential security issue with libetpan code in mailmbox plugin
struct mailimf_group * group;
int r;
int res;
+ clist * list;
cur_token = * index;
res = r;
goto free_display_name;
}
+ list = clist_new();
+ if (list == NULL) {
+ res = MAILIMF_ERROR_MEMORY;
+ goto free_display_name;
+ }
+ mailbox_list = mailimf_mailbox_list_new(list);
+ if (mailbox_list == NULL) {
+ res = MAILIMF_ERROR_MEMORY;
+ clist_free(list);
+ goto free_display_name;
+ }
break;
default:
res = r;