[Commits] [SCM] claws branch, master, updated. 3.18.0-231-gb910bfe85
wwp at claws-mail.org
wwp at claws-mail.org
Mon Oct 4 09:05:18 CEST 2021
The branch, master has been updated
via b910bfe858bab51334a6d623580383ec685324ee (commit)
from 4d7fede4294566578f3c4cb9e949e744d140055a (commit)
Summary of changes:
src/compose.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit b910bfe858bab51334a6d623580383ec685324ee
Author: wwp <subscript at free.fr>
Date: Mon Oct 4 09:04:46 2021 +0200
Fix (in a better way) CID 1492307: use after free.
diff --git a/src/compose.c b/src/compose.c
index 5323ad2fb..3db0f7780 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -2389,10 +2389,13 @@ Compose *compose_reedit(MsgInfo *msginfo, gboolean batch)
}
if (!account) {
account = cur_account;
+ }
+ if (!account) {
+ g_warning("can't select account");
if (manual_headers)
procheader_entries_free(manual_headers);
+ return NULL;
}
- cm_return_val_if_fail(account != NULL, NULL);
compose = compose_create(account, msginfo->folder, COMPOSE_REEDIT, batch);
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list