summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-29 17:52:53 -0400
committerJune McEnroe <june@causal.agency>2020-04-29 17:52:53 -0400
commit0f1d5473395419e48771101524d87b2ebe4b2be9 (patch)
tree0e85cd382a59ca556414ad81096f8fab364be890
parentHighlight diff/index/---/+++ lines of patches as well (diff)
downloadbubger-0f1d5473395419e48771101524d87b2ebe4b2be9.tar.gz
bubger-0f1d5473395419e48771101524d87b2ebe4b2be9.zip
Fix infinite loop if exportAtom can't find a text part
Oops. But also why the hell are people making multipart/alternative with
only text/html inside?
Diffstat (limited to '')
-rw-r--r--export.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/export.c b/export.c
index c808ba8..9e40870 100644
--- a/export.c
+++ b/export.c
@@ -129,6 +129,7 @@ static void exportAtom(
 				body = dataCheck(body, List).list.ptr[i];
 				break;
 			}
+			if (part->multipart) break;
 		} else {
 			part = &part->parts.ptr[0];
 			body = dataCheck(body, List).list.ptr[0];