aboutsummaryrefslogtreecommitdiffstats
path: root/rfc822.c
diff options
context:
space:
mode:
Diffstat (limited to 'rfc822.c')
-rw-r--r--rfc822.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rfc822.c b/rfc822.c
index efa92f9c..beff379d 100644
--- a/rfc822.c
+++ b/rfc822.c
@@ -247,6 +247,8 @@ char *nxtaddr(const char *hdr /* header to be parsed, NUL to continue previous h
tp = 0;
}
+ if (!hp) return NULL;
+
for (; *hp; hp++)
{
#ifdef MAIN