Skip to content

Commit 056cae2

Browse files
committed
failure to allocate memory before calling spamify when handling From:
1 parent 275a205 commit 056cae2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/parse.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1803,10 +1803,10 @@ int parsemail(char *mbox, /* file name */
18031803
getname(head->line, &namep, &emailp);
18041804
head->parsedheader = TRUE;
18051805
if (set_spamprotect) {
1806-
emailp=spamify(emailp);
1806+
emailp = spamify(strsav(emailp));
18071807
/* we need to "fix" the name as well, as sometimes
18081808
the email ends up in the name part */
1809-
namep=spamify(namep);
1809+
namep = spamify(strsav(namep));
18101810
}
18111811
}
18121812
else if (!strncasecmp(head->line, "Message-Id:", 11)) {

0 commit comments

Comments
 (0)