Skip to content

Commit

Permalink
lib-storage: Don't try to deserialize bodystructure if we already hav…
Browse files Browse the repository at this point in the history
…e it

Fixes:
Panic: file message-part-data.c: line 37 (message_part_data_is_plain_7bit): assertion failed: (data != NULL)
  • Loading branch information
Josef 'Jeff' Sipek authored and villesavolainen committed Sep 10, 2018
1 parent 97e8c82 commit 3ecffb1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib-storage/index/index-mail.c
Expand Up @@ -131,6 +131,9 @@ static bool get_cached_parts(struct index_mail *mail)
{
struct message_part *part;

if (mail->data.parts != NULL)
return TRUE;

T_BEGIN {
part = get_unserialized_parts(mail);
} T_END;
Expand Down

0 comments on commit 3ecffb1

Please sign in to comment.