aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--driver.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/driver.c b/driver.c
index b060885f..9063e865 100644
--- a/driver.c
+++ b/driver.c
@@ -667,6 +667,12 @@ struct query *ctl; /* query control record */
return(PS_SMTP);
}
+ if (!fromhdr)
+ {
+ fprintf(stderr, "fetchmail: I see no From header\n");
+ return(PS_SMTP);
+ }
+
if (SMTP_from(sinkfp, nxtaddr(fromhdr)) != SM_OK)
{
fprintf(stderr, "fetchmail: SMTP listener is confused\n");