Skip to content

Commit

Permalink
jmap_mail_submission.c: don't crash on create with empty emailId
Browse files Browse the repository at this point in the history
  • Loading branch information
ksmurchison committed Aug 23, 2019
1 parent 819eb55 commit 0897803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imap/jmap_mail_submission.c
Expand Up @@ -486,7 +486,7 @@ static void _emailsubmission_create(jmap_req_t *req,
if (!msgid) {
jmap_parser_invalid(&parser, "emailId");
}
*emailid = xstrdup(msgid);
*emailid = xstrdupnull(msgid);

/* identityId */
const char *identityid = NULL;
Expand Down

0 comments on commit 0897803

Please sign in to comment.